diff options
author | Thierry Crozat | 2016-10-30 18:59:47 +0000 |
---|---|---|
committer | Thierry Crozat | 2016-10-30 18:59:47 +0000 |
commit | 0f9655bfe05b0312224bf252c515370b1229fe23 (patch) | |
tree | 2b182a5424bd5b184c9086b8ee593da5f3ee879d /gui | |
parent | 8b5317e05d29cb2f9fad7ace7e59bda152a56418 (diff) | |
download | scummvm-rg350-0f9655bfe05b0312224bf252c515370b1229fe23.tar.gz scummvm-rg350-0f9655bfe05b0312224bf252c515370b1229fe23.tar.bz2 scummvm-rg350-0f9655bfe05b0312224bf252c515370b1229fe23.zip |
GUI: Allow changing the GUI language without restarting ScummVM
Diffstat (limited to 'gui')
-rw-r--r-- | gui/options.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/gui/options.cpp b/gui/options.cpp index a90a0fcae4..3f6fc5aa2c 100644 --- a/gui/options.cpp +++ b/gui/options.cpp @@ -28,6 +28,7 @@ #include "gui/widgets/popup.h" #include "gui/widgets/tab.h" #include "gui/ThemeEval.h" +#include "gui/launcher.h" #include "common/fs.h" #include "common/config-manager.h" @@ -1595,18 +1596,14 @@ void GlobalOptionsDialog::apply() { Common::String newLang = ConfMan.get("gui_language").c_str(); if (newLang != oldLang) { -#if 0 // Activate the selected language TransMan.setLanguage(selLang); - - // FIXME: We need to update the labels for all the existing widget after - // the language has been changed. + + // Rebuild the Launcher and Options dialogs g_gui.loadNewTheme(g_gui.theme()->getThemeId(), ThemeEngine::kGfxDisabled, true); rebuild(); -#else - MessageDialog error(_("You have to restart ScummVM before your changes will take effect.")); - error.runModal(); -#endif + if (_launcher != 0) + _launcher->rebuild(); } #endif // USE_TRANSLATION |