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 <noreply@anthropic.com>
This commit is contained in:
Kaj SchittecatandClaude Fable 5 committed 2026-07-08 16:53:21 +02:00
1 parent dd19cbe52d
commit e2eb0d3118
1 file changed
+5 -1
+5 -1
View File
@@ -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