diff options
| author | 2023-06-03 17:17:03 +0200 | |
|---|---|---|
| committer | 2023-06-03 17:17:03 +0200 | |
| commit | 27313fe576fdab68009b4e051a95df4e4e912e5a (patch) | |
| tree | ce17b6b0dc4d0acbabd12ed536b6944080ef1fd1 /src | |
| parent | Pick game icon based on the configured system language (diff) | |
| download | yuzu-27313fe576fdab68009b4e051a95df4e4e912e5a.tar.gz yuzu-27313fe576fdab68009b4e051a95df4e4e912e5a.tar.xz yuzu-27313fe576fdab68009b4e051a95df4e4e912e5a.zip | |
Issue a reload if the system language changed
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 82bce9a3a..145fea5f1 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -3491,6 +3491,7 @@ void GMainWindow::ResetWindowSize1080() { | |||
| 3491 | void GMainWindow::OnConfigure() { | 3491 | void GMainWindow::OnConfigure() { |
| 3492 | const auto old_theme = UISettings::values.theme; | 3492 | const auto old_theme = UISettings::values.theme; |
| 3493 | const bool old_discord_presence = UISettings::values.enable_discord_presence.GetValue(); | 3493 | const bool old_discord_presence = UISettings::values.enable_discord_presence.GetValue(); |
| 3494 | const auto old_language_index = Settings::values.language_index.GetValue(); | ||
| 3494 | 3495 | ||
| 3495 | Settings::SetConfiguringGlobal(true); | 3496 | Settings::SetConfiguringGlobal(true); |
| 3496 | ConfigureDialog configure_dialog(this, hotkey_registry, input_subsystem.get(), *system, | 3497 | ConfigureDialog configure_dialog(this, hotkey_registry, input_subsystem.get(), *system, |
| @@ -3559,7 +3560,7 @@ void GMainWindow::OnConfigure() { | |||
| 3559 | emit UpdateThemedIcons(); | 3560 | emit UpdateThemedIcons(); |
| 3560 | 3561 | ||
| 3561 | const auto reload = UISettings::values.is_game_list_reload_pending.exchange(false); | 3562 | const auto reload = UISettings::values.is_game_list_reload_pending.exchange(false); |
| 3562 | if (reload) { | 3563 | if (reload || Settings::values.language_index.GetValue() != old_language_index) { |
| 3563 | game_list->PopulateAsync(UISettings::values.game_dirs); | 3564 | game_list->PopulateAsync(UISettings::values.game_dirs); |
| 3564 | } | 3565 | } |
| 3565 | 3566 | ||