Commit f135d9f6 authored by -f's avatar -f

changed the name of the autosave interval variable and its value

parent 6b2a555b
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment