diff options
Diffstat (limited to 'src/Cache_p.h')
-rw-r--r-- | src/Cache_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Cache_p.h b/src/Cache_p.h index 356c6e42..c55fa601 100644 --- a/src/Cache_p.h +++ b/src/Cache_p.h @@ -100,6 +100,7 @@ public: void saveState(const mtx::responses::Sync &res); bool isInitialized(); + bool isDatabaseReady() { return databaseReady_ && isInitialized(); } std::string nextBatchToken(); @@ -620,6 +621,8 @@ private: QString cacheDirectory_; VerificationStorage verification_storage; + + bool databaseReady_ = false; }; namespace cache { |