diff options
author | Eugene Sandulenko | 2016-03-31 13:59:01 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-03-31 13:59:01 +0200 |
commit | 2cde45fe6d94211d005cd32e7368769f8524bdec (patch) | |
tree | 91a874c102b2e69cd6390eeaa8fa459eb9d76f9b | |
parent | 82963f7446f336fe71e71f35fa39768aed059541 (diff) | |
download | scummvm-rg350-2cde45fe6d94211d005cd32e7368769f8524bdec.tar.gz scummvm-rg350-2cde45fe6d94211d005cd32e7368769f8524bdec.tar.bz2 scummvm-rg350-2cde45fe6d94211d005cd32e7368769f8524bdec.zip |
UPDATES: Implement Check now button in Options
-rw-r--r-- | gui/options.cpp | 11 | ||||
-rw-r--r-- | gui/themes/scummclassic.zip | bin | 111931 -> 112109 bytes | |||
-rw-r--r-- | gui/themes/scummclassic/classic_layout.stx | 3 | ||||
-rw-r--r-- | gui/themes/scummclassic/classic_layout_lowres.stx | 3 | ||||
-rw-r--r-- | gui/themes/scummmodern.zip | bin | 1487717 -> 1487883 bytes | |||
-rw-r--r-- | gui/themes/scummmodern/scummmodern_layout.stx | 3 | ||||
-rw-r--r-- | gui/themes/scummmodern/scummmodern_layout_lowres.stx | 3 |
7 files changed, 22 insertions, 1 deletions
diff --git a/gui/options.cpp b/gui/options.cpp index 06f79e94b7..c4a82982b2 100644 --- a/gui/options.cpp +++ b/gui/options.cpp @@ -62,7 +62,8 @@ enum { kChooseExtraDirCmd = 'chex', kExtraPathClearCmd = 'clex', kChoosePluginsDirCmd = 'chpl', - kChooseThemeCmd = 'chtf' + kChooseThemeCmd = 'chtf', + kUpdatesCheckCmd = 'updc' }; enum { @@ -1245,6 +1246,8 @@ GlobalOptionsDialog::GlobalOptionsDialog() _updatesPopUp->setSelectedTag(ConfMan.getInt("updates_check")); else _updatesPopUp->setSelectedTag(Common::UpdateManager::kUpdateIntervalNotSupported); + + new ButtonWidget(tab, "GlobalOptions_Misc.UpdatesCheckManuallyButton", _("Check now"), 0, kUpdatesCheckCmd); #endif // Activate the first tab @@ -1519,6 +1522,12 @@ void GlobalOptionsDialog::handleCommand(CommandSender *sender, uint32 cmd, uint3 _fluidSynthSettingsDialog->runModal(); break; #endif +#ifdef USE_UPDATES + case kUpdatesCheckCmd: + if (g_system->getUpdateManager()) + g_system->getUpdateManager()->checkForUpdates(); + break; +#endif default: OptionsDialog::handleCommand(sender, cmd, data); } diff --git a/gui/themes/scummclassic.zip b/gui/themes/scummclassic.zip Binary files differindex 028e5f23c7..43fcea12fd 100644 --- a/gui/themes/scummclassic.zip +++ b/gui/themes/scummclassic.zip diff --git a/gui/themes/scummclassic/classic_layout.stx b/gui/themes/scummclassic/classic_layout.stx index b8b0d9a85d..65724d9faf 100644 --- a/gui/themes/scummclassic/classic_layout.stx +++ b/gui/themes/scummclassic/classic_layout.stx @@ -514,6 +514,9 @@ <widget name = 'UpdatesPopup' type = 'PopUp' /> + <widget name = 'UpdatesCheckManuallyButton' + type = 'Button' + /> </layout> <widget name='KeysButton' type='Button' diff --git a/gui/themes/scummclassic/classic_layout_lowres.stx b/gui/themes/scummclassic/classic_layout_lowres.stx index 7481f9ef54..f73f6e864b 100644 --- a/gui/themes/scummclassic/classic_layout_lowres.stx +++ b/gui/themes/scummclassic/classic_layout_lowres.stx @@ -519,6 +519,9 @@ <widget name = 'UpdatesPopup' type = 'PopUp' /> + <widget name = 'UpdatesCheckManuallyButton' + type = 'Button' + /> </layout> <widget name='KeysButton' type='Button' diff --git a/gui/themes/scummmodern.zip b/gui/themes/scummmodern.zip Binary files differindex 52655a510e..70f7672c57 100644 --- a/gui/themes/scummmodern.zip +++ b/gui/themes/scummmodern.zip diff --git a/gui/themes/scummmodern/scummmodern_layout.stx b/gui/themes/scummmodern/scummmodern_layout.stx index 8ce9a0007e..c73ffa1f08 100644 --- a/gui/themes/scummmodern/scummmodern_layout.stx +++ b/gui/themes/scummmodern/scummmodern_layout.stx @@ -528,6 +528,9 @@ <widget name = 'UpdatesPopup' type = 'PopUp' /> + <widget name = 'UpdatesCheckManuallyButton' + type = 'Button' + /> </layout> <widget name='KeysButton' type='Button' diff --git a/gui/themes/scummmodern/scummmodern_layout_lowres.stx b/gui/themes/scummmodern/scummmodern_layout_lowres.stx index 7de2c48c60..43ec0cdee1 100644 --- a/gui/themes/scummmodern/scummmodern_layout_lowres.stx +++ b/gui/themes/scummmodern/scummmodern_layout_lowres.stx @@ -517,6 +517,9 @@ <widget name = 'UpdatesPopup' type = 'PopUp' /> + <widget name = 'UpdatesCheckManuallyButton' + type = 'Button' + /> </layout> <widget name='KeysButton' type='Button' |