From 4ee6a68c492486baf8e7d78dfb7731c0cb08d985 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Thu, 8 Apr 2021 13:57:12 +0300 Subject: Update keybindings list when language changes --- res/about/version.gmi | 1 + src/ui/bindingswidget.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/res/about/version.gmi b/res/about/version.gmi index 10dbb8f6..f8aaea94 100644 --- a/res/about/version.gmi +++ b/res/about/version.gmi @@ -7,6 +7,7 @@ # Release notes ## 1.3.2 +* Fixed keybindings list not being updated immediately when UI language changes. ## 1.3.1 * Added UI languages: Serbian, Interlingue. diff --git a/src/ui/bindingswidget.c b/src/ui/bindingswidget.c index dc23dd6e..6e8fa5b5 100644 --- a/src/ui/bindingswidget.c +++ b/src/ui/bindingswidget.c @@ -179,6 +179,10 @@ static iBool processEvent_BindingsWidget_(iBindingsWidget *d, const SDL_Event *e postCommand_App("bindings.changed"); return iTrue; } + else if (equal_Command(cmd, "lang.changed")) { + updateItems_BindingsWidget_(d); + return iFalse; + } if (ev->type == SDL_MOUSEBUTTONDOWN && ev->button.button == SDL_BUTTON_RIGHT) { if (!isVisible_Widget(d->menu)) { d->contextPos = hoverItemIndex_ListWidget(d->list); -- cgit v1.2.3