UPDATES: Implement Check now button in Options
This commit is contained in:
parent
82963f7446
commit
2cde45fe6d
7 changed files with 22 additions and 1 deletions
|
@ -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
|
||||
|
@ -1518,6 +1521,12 @@ void GlobalOptionsDialog::handleCommand(CommandSender *sender, uint32 cmd, uint3
|
|||
case kFluidSynthSettingsCmd:
|
||||
_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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue