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 --- src/ui/bindingswidget.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ui/bindingswidget.c') 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