Gui: allow to configure the checks of the cache directory

This commit is contained in:
wmayer
2021-11-16 15:37:04 +01:00
parent e953dc1c2a
commit ed03e8ded5
8 changed files with 737 additions and 172 deletions

View File

@@ -93,6 +93,7 @@
#include "SpaceballEvent.h"
#include "Control.h"
#include "DocumentRecovery.h"
#include "DlgSettingsCacheDirectory.h"
#include "TransactionObject.h"
#include "FileDialog.h"
#include "ExpressionBindingPy.h"
@@ -2422,6 +2423,7 @@ void Application::checkForPreviousCrashes()
// If the recovery dialog wasn't shown check the cache size periodically
Gui::Dialog::ApplicationCache cache;
cache.applyUserSettings();
if (cache.periodicCheckOfSize()) {
qint64 total = cache.size();
cache.performAction(total);