From 42e5fa3ea5933bba94444ec6b192c93cb7fda6cf Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Sat, 7 Jun 2025 02:19:34 +0200 Subject: [PATCH] shortcuts: Fix garbled title after language change Change-Id: I09517c2f143e16b8874b8b8df7d3f8125686ff7a --- apps/shortcuts.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/shortcuts.c b/apps/shortcuts.c index 33383efb1c..29342142b5 100644 --- a/apps/shortcuts.c +++ b/apps/shortcuts.c @@ -730,11 +730,7 @@ int do_shortcut_menu(void *ignored) simplelist_info_init(&list, P2STR(ID2P(LANG_SHORTCUTS)), shortcut_count, NULL); list.get_name = shortcut_menu_get_name; list.action_callback = shortcut_menu_get_action; - if (global_settings.show_icons) - list.get_icon = shortcut_menu_get_icon; list.title_icon = Icon_Bookmark; - if (global_settings.talk_menu) - list.get_talk = shortcut_menu_speak_item; if (shortcut_count == 0) { @@ -749,7 +745,10 @@ int do_shortcut_menu(void *ignored) while (done == GO_TO_PREVIOUS) { - list.count = shortcut_count; + list.count = shortcut_count; /* in case shortcut was deleted */ + list.title = P2STR(ID2P(LANG_SHORTCUTS)); /* in case language changed */ + list.get_icon = global_settings.show_icons ? shortcut_menu_get_icon : NULL; + list.get_talk = global_settings.talk_menu ? shortcut_menu_speak_item : NULL; if (simplelist_show_list(&list)) break; /* some error happened?! */