aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-11-06 01:05:10 +0100
committerSefa Eyeoglu <contact@scrumplex.net>2022-11-06 01:05:13 +0100
commitd5d224d89a6d1fccacbf8ffe8d0981cec32e89fb (patch)
tree33d8d97bd9e15bc0d5602427b5945411c2a5b7ce /launcher
parent5e9b26dbef1c7cf917af17585c4282f58fc5eaef (diff)
downloadPrismLauncher-d5d224d89a6d1fccacbf8ffe8d0981cec32e89fb.tar.gz
PrismLauncher-d5d224d89a6d1fccacbf8ffe8d0981cec32e89fb.tar.bz2
PrismLauncher-d5d224d89a6d1fccacbf8ffe8d0981cec32e89fb.zip
fix: save metacache after clearing
If the user closes the launcher right after clearing, it probably didn't actually clear the cache yet. Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher')
-rw-r--r--launcher/ui/MainWindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp
index 28eaa741..bbaf2827 100644
--- a/launcher/ui/MainWindow.cpp
+++ b/launcher/ui/MainWindow.cpp
@@ -1899,6 +1899,7 @@ void MainWindow::on_actionReportBug_triggered()
void MainWindow::on_actionClearMetadata_triggered()
{
APPLICATION->metacache()->evictAll();
+ APPLICATION->metacache()->SaveNow();
}
void MainWindow::on_actionOpenWiki_triggered()