changed the name of the autosave interval variable and its value

preferencesAboutTextFull
-f 11 years ago
parent 6b2a555b5f
commit f135d9f6a4
  1. 8
      src/board/UBBoardController.cpp
  2. 2
      src/core/UBSettings.cpp
  3. 2
      src/core/UBSettings.h

@ -1634,7 +1634,7 @@ void UBBoardController::adjustDisplayViews()
int UBBoardController::autosaveTimeoutFromSettings()
{
int value = UBSettings::settings()->timerInterval->get().toInt();
int value = UBSettings::settings()->autoSaveInterval->get().toInt();
int minute = 60 * 1000;
return value * minute;
@ -1773,8 +1773,8 @@ void UBBoardController::autosaveTimeout()
void UBBoardController::appMainModeChanged(UBApplicationController::MainMode md)
{
int timerInterval = autosaveTimeoutFromSettings();
if (!timerInterval) {
int autoSaveInterval = autosaveTimeoutFromSettings();
if (!autoSaveInterval) {
return;
}
@ -1784,7 +1784,7 @@ void UBBoardController::appMainModeChanged(UBApplicationController::MainMode md)
}
if (md == UBApplicationController::Board) {
mAutosaveTimer->start(timerInterval);
mAutosaveTimer->start(autoSaveInterval);
} else if (mAutosaveTimer->isActive()) {
mAutosaveTimer->stop();
}

@ -353,7 +353,7 @@ void UBSettings::init()
boardShowToolsPalette = new UBSetting(this, "Board", "ShowToolsPalette", "false");
magnifierDrawingMode = new UBSetting(this, "Board", "MagnifierDrawingMode", "0");
timerInterval = new UBSetting(this, "Board", "Timer interval", "5");
autoSaveInterval = new UBSetting(this, "Board", "AutoSaveIntervalInMinutes", "3");
svgViewBoxMargin = new UBSetting(this, "SVG", "ViewBoxMargin", "50");

@ -373,7 +373,7 @@ class UBSettings : public QObject
UBSetting* libIconSize;
UBSetting* magnifierDrawingMode;
UBSetting* timerInterval;
UBSetting* autoSaveInterval;
public slots:

Loading…
Cancel
Save