From 4dbd3b6bbc8c8290e69de0dc18331cf18261ae04 Mon Sep 17 00:00:00 2001 From: Harry Hopkinson <63599884+Harry-Hopkinson@users.noreply.github.com> Date: Fri, 23 May 2025 12:59:26 +0100 Subject: [PATCH] Fix #24447: Refresh the shortcut window when changing language (#24478) * Refresh the shortcut window when changing language * Add changelog entry --- distribution/changelog.txt | 1 + src/openrct2-ui/windows/ShortcutKeys.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index b630f05df6..820ba6bbfc 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -24,6 +24,7 @@ - Fix: [#24403] Park fences draw underneath and through opaque water. - Fix: [#24406] The network status window uses an undefined string for its title. - Fix: [#24444] In the object load error window, the guide text overlaps when the title bar is enlarged. +- Fix: [#24447] Shortcut list is not refreshed when changing language. - Fix: [#24448] Shortcuts involving the Caps Lock key are wrongly localised to NumPad Dot. - Fix: [#24464] Window and viewport visibility is not calculated correctly causing minor performance issues. diff --git a/src/openrct2-ui/windows/ShortcutKeys.cpp b/src/openrct2-ui/windows/ShortcutKeys.cpp index 0c59c60599..804028b691 100644 --- a/src/openrct2-ui/windows/ShortcutKeys.cpp +++ b/src/openrct2-ui/windows/ShortcutKeys.cpp @@ -335,6 +335,11 @@ namespace OpenRCT2::Ui::Windows } } + void OnLanguageChange() override + { + InitialiseList(); + } + void RefreshBindings() { InitialiseList();