mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-07 19:36:21 +00:00
Display the correct theme name if it's specified with --gui-theme
svn-id: r24223
This commit is contained in:
parent
e11bfe5f49
commit
fa668d275f
@ -690,7 +690,7 @@ GlobalOptionsDialog::GlobalOptionsDialog()
|
|||||||
tab->addTab("Misc");
|
tab->addTab("Misc");
|
||||||
|
|
||||||
new ButtonWidget(tab, "globaloptions_themebutton2", "Theme:", kChooseThemeCmd, 0);
|
new ButtonWidget(tab, "globaloptions_themebutton2", "Theme:", kChooseThemeCmd, 0);
|
||||||
_curTheme = new StaticTextWidget(tab, "globaloptions_curtheme", ConfMan.get("gui_theme", _domain));
|
_curTheme = new StaticTextWidget(tab, "globaloptions_curtheme", ConfMan.get("gui_theme", Common::ConfigManager::kTransientDomain));
|
||||||
|
|
||||||
// TODO: joystick setting
|
// TODO: joystick setting
|
||||||
|
|
||||||
@ -812,7 +812,7 @@ void GlobalOptionsDialog::handleCommand(CommandSender *sender, uint32 cmd, uint3
|
|||||||
if (0 != theme.compareToIgnoreCase(g_gui.theme()->getStylefileName()))
|
if (0 != theme.compareToIgnoreCase(g_gui.theme()->getStylefileName()))
|
||||||
if (g_gui.loadNewTheme(theme)) {
|
if (g_gui.loadNewTheme(theme)) {
|
||||||
_curTheme->setLabel(theme);
|
_curTheme->setLabel(theme);
|
||||||
ConfMan.set("gui_theme", theme, _domain);
|
ConfMan.set("gui_theme", theme, Common::ConfigManager::kTransientDomain);
|
||||||
}
|
}
|
||||||
draw();
|
draw();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user