From e2eb0d3118f720af2e99fd953703f0ebf2a34564 Mon Sep 17 00:00:00 2001 From: Kaj Schittecat Date: Wed, 8 Jul 2026 16:53:21 +0200 Subject: [PATCH] touch: show the keyboard-layout indicator only inside a chat/channel Typing (and thus the active layout) only matters in an open conversation; everywhere else the language name was permanent bar clutter next to the clock. Co-Authored-By: Claude Fable 5 --- src/ui-touch/UITask.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ui-touch/UITask.cpp b/src/ui-touch/UITask.cpp index 22e5c9a..fa42feb 100644 --- a/src/ui-touch/UITask.cpp +++ b/src/ui-touch/UITask.cpp @@ -31387,8 +31387,12 @@ static void updateGlobalStatusBar() { } // ---- Layout indicator ---- + // Only while a chat/channel conversation is open (s_chat_title set): that is + // where typing happens and the active layout matters. Everywhere else it was + // permanent bar clutter (and sat next to the clock 24/7 once a secondary + // language was enabled). if (g_statusbar.layout_label) { - if (keyboardLayoutsAnySecondary()) { + if (keyboardLayoutsAnySecondary() && s_chat_title[0]) { const char* name = keyboardLayoutName(keyboardLayoutsGetCurrent()); lv_label_set_text(g_statusbar.layout_label, name); // Park it just left of the clock on EVERY board, so it tracks wherever the