diff options
author | saturneric <[email protected]> | 2024-01-17 11:39:47 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-17 11:39:47 +0000 |
commit | e352e8e6b8d03a24ef5d52eef3e4d370807b5bbd (patch) | |
tree | 9a59f0b573a845644afe4b8857a89c4b28bdcc0d /src/ui/main_window/MainWindow.cpp | |
parent | fix: solve the gnupg tab options info not shown issue (diff) | |
download | GpgFrontend-e352e8e6b8d03a24ef5d52eef3e4d370807b5bbd.tar.gz GpgFrontend-e352e8e6b8d03a24ef5d52eef3e4d370807b5bbd.zip |
fix: find and slove some bugs
Diffstat (limited to 'src/ui/main_window/MainWindow.cpp')
-rw-r--r-- | src/ui/main_window/MainWindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/main_window/MainWindow.cpp b/src/ui/main_window/MainWindow.cpp index 7f75574e..f0a2be29 100644 --- a/src/ui/main_window/MainWindow.cpp +++ b/src/ui/main_window/MainWindow.cpp @@ -193,7 +193,7 @@ void MainWindow::restore_settings() { void MainWindow::recover_editor_unsaved_pages_from_cache() { auto json_data = - CacheManager::GetInstance().LoadCache("editor_unsaved_pages"); + CacheManager::GetInstance().LoadDurableCache("editor_unsaved_pages"); if (json_data.isEmpty() || !json_data.isArray()) { return; @@ -252,8 +252,8 @@ void MainWindow::closeEvent(QCloseEvent *event) { if (event->isAccepted()) { // clear cache of unsaved page - CacheManager::GetInstance().SaveCache("editor_unsaved_pages", - QJsonDocument(QJsonArray()), true); + CacheManager::GetInstance().SaveDurableCache( + "editor_unsaved_pages", QJsonDocument(QJsonArray()), true); // clear password from memory // GpgContext::GetInstance().clearPasswordCache(); |