aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/struct/CacheObject.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-01-17 11:39:47 +0000
committersaturneric <[email protected]>2024-01-17 11:39:47 +0000
commite352e8e6b8d03a24ef5d52eef3e4d370807b5bbd (patch)
tree9a59f0b573a845644afe4b8857a89c4b28bdcc0d /src/ui/struct/CacheObject.cpp
parentfix: solve the gnupg tab options info not shown issue (diff)
downloadGpgFrontend-e352e8e6b8d03a24ef5d52eef3e4d370807b5bbd.tar.gz
GpgFrontend-e352e8e6b8d03a24ef5d52eef3e4d370807b5bbd.zip
fix: find and slove some bugs
Diffstat (limited to 'src/ui/struct/CacheObject.cpp')
-rw-r--r--src/ui/struct/CacheObject.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/struct/CacheObject.cpp b/src/ui/struct/CacheObject.cpp
index 16c793fc..bd3b9818 100644
--- a/src/ui/struct/CacheObject.cpp
+++ b/src/ui/struct/CacheObject.cpp
@@ -34,13 +34,12 @@ namespace GpgFrontend::UI {
CacheObject::CacheObject(QString cache_name)
: cache_name_(std::move(cache_name)) {
- GF_UI_LOG_DEBUG("loading cache from: {}", this->cache_name_);
this->QJsonDocument::operator=(
- CacheManager::GetInstance().LoadCache(cache_name_));
+ CacheManager::GetInstance().LoadDurableCache(cache_name_));
}
CacheObject::~CacheObject() {
- CacheManager::GetInstance().SaveCache(cache_name_, *this);
+ CacheManager::GetInstance().SaveDurableCache(cache_name_, *this);
}
} // namespace GpgFrontend::UI \ No newline at end of file