diff options
author | Willem Jan Palenstijn | 2017-05-25 15:56:22 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2017-05-25 16:23:34 +0200 |
commit | dadf1dbe9432629d4678df3174db6420e09b0ff3 (patch) | |
tree | 2be49088403cb7dc0b5e02c7835d4f84767d1d90 /engines | |
parent | ad1cc613eff489e1efaecc5b78f99a33b3054688 (diff) | |
download | scummvm-rg350-dadf1dbe9432629d4678df3174db6420e09b0ff3.tar.gz scummvm-rg350-dadf1dbe9432629d4678df3174db6420e09b0ff3.tar.bz2 scummvm-rg350-dadf1dbe9432629d4678df3174db6420e09b0ff3.zip |
GUI: Fully hide GMM save/load buttons if not supported by engine
Previously, they were only greyed out. According to the discussion on
patch #8925, this was a limitation of the GUI layout engine when these
buttons were introduced in 2008. This no longer seems to be a problem.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/dialogs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/dialogs.cpp b/engines/dialogs.cpp index 0867a101b0..14c0cb0c18 100644 --- a/engines/dialogs.cpp +++ b/engines/dialogs.cpp @@ -85,11 +85,11 @@ MainMenuDialog::MainMenuDialog(Engine *engine) new GUI::ButtonWidget(this, "GlobalMenu.Resume", _("~R~esume"), 0, kPlayCmd, 'P'); _loadButton = new GUI::ButtonWidget(this, "GlobalMenu.Load", _("~L~oad"), 0, kLoadCmd); - // TODO: setEnabled -> setVisible + _loadButton->setVisible(_engine->hasFeature(Engine::kSupportsLoadingDuringRuntime)); _loadButton->setEnabled(_engine->hasFeature(Engine::kSupportsLoadingDuringRuntime)); _saveButton = new GUI::ButtonWidget(this, "GlobalMenu.Save", _("~S~ave"), 0, kSaveCmd); - // TODO: setEnabled -> setVisible + _saveButton->setVisible(_engine->hasFeature(Engine::kSupportsSavingDuringRuntime)); _saveButton->setEnabled(_engine->hasFeature(Engine::kSupportsSavingDuringRuntime)); new GUI::ButtonWidget(this, "GlobalMenu.Options", _("~O~ptions"), 0, kOptionsCmd); |