Skip to content

Commit

Permalink
Gui: allow to configure the checks of the cache directory
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Nov 16, 2021
1 parent e953dc1 commit ed03e8d
Show file tree
Hide file tree
Showing 8 changed files with 737 additions and 172 deletions.
2 changes: 2 additions & 0 deletions src/Gui/Application.cpp
Expand Up @@ -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"
Expand Down Expand Up @@ -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);
Expand Down
4 changes: 4 additions & 0 deletions src/Gui/CMakeLists.txt
Expand Up @@ -328,6 +328,7 @@ SET(Gui_UIC_SRCS
DlgPropertyLink.ui
DlgReportView.ui
DlgSettings3DView.ui
DlgSettingsCacheDirectory.ui
DlgSettingsNavigation.ui
DlgSettingsSelection.ui
DlgSettingsUnits.ui
Expand Down Expand Up @@ -563,6 +564,7 @@ SET(Dialog_Settings_CPP_SRCS
DlgPreferencesImp.cpp
DlgReportViewImp.cpp
DlgSettings3DViewImp.cpp
DlgSettingsCacheDirectory.cpp
DlgSettingsNavigation.cpp
DlgSettingsSelection.cpp
DlgSettingsUnitsImp.cpp
Expand All @@ -580,6 +582,7 @@ SET(Dialog_Settings_HPP_SRCS
DlgPreferencesImp.h
DlgReportViewImp.h
DlgSettings3DViewImp.h
DlgSettingsCacheDirectory.h
DlgSettingsNavigation.h
DlgSettingsSelection.h
DlgSettingsUnitsImp.h
Expand All @@ -599,6 +602,7 @@ SET(Dialog_Settings_SRCS
DlgPreferences.ui
DlgReportView.ui
DlgSettings3DView.ui
DlgSettingsCacheDirectory.ui
DlgSettingsNavigation.ui
DlgSettingsSelection.ui
DlgSettingsUnits.ui
Expand Down

0 comments on commit ed03e8d

Please sign in to comment.