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.
This commit is contained in:
parent
ad1cc613ef
commit
dadf1dbe94
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue