aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorEugene Sandulenko2016-03-29 10:53:50 +0200
committerEugene Sandulenko2016-03-29 19:11:09 +0200
commit3efae7e799851f7288266e3bd91c783168d16eb3 (patch)
treea696d2f37f0f0caea147d6aead6d124cbbe76fe3 /gui
parent12b0313d92cea9105477e644fb4fdcb592c30abb (diff)
downloadscummvm-rg350-3efae7e799851f7288266e3bd91c783168d16eb3.tar.gz
scummvm-rg350-3efae7e799851f7288266e3bd91c783168d16eb3.tar.bz2
scummvm-rg350-3efae7e799851f7288266e3bd91c783168d16eb3.zip
GUI: Store secelcted update frequency in config
Diffstat (limited to 'gui')
-rw-r--r--gui/options.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/gui/options.cpp b/gui/options.cpp
index 832f793b9f..0dd5d95651 100644
--- a/gui/options.cpp
+++ b/gui/options.cpp
@@ -1238,6 +1238,11 @@ GlobalOptionsDialog::GlobalOptionsDialog()
_updatesPopUp->appendEntry(_("Daily"), Common::UpdateManager::kUpdateIntervalOneDay);
_updatesPopUp->appendEntry(_("Weekly"), Common::UpdateManager::kUpdateIntervalOneWeek);
_updatesPopUp->appendEntry(_("Monthly"), Common::UpdateManager::kUpdateIntervalOneMonth);
+
+ if (ConfMan.hasKey("updates_check"))
+ _updatesPopUp->setSelectedTag(ConfMan.getInt("updates_check"));
+ else
+ _updatesPopUp->setSelectedTag(Common::UpdateManager::kUpdateIntervalNotSupported);
#endif
// Activate the first tab
@@ -1378,6 +1383,10 @@ void GlobalOptionsDialog::close() {
}
#endif // USE_TRANSLATION
+#ifdef USE_UPDATES
+ ConfMan.setInt("updates_check", _updatesPopUp->getSelectedTag());
+#endif
+
}
OptionsDialog::close();
}