diff options
-rw-r--r-- | gui/options.cpp | 9 |
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(); } |