From 009bde0db4e80b8cd96687598ed35477e276de54 Mon Sep 17 00:00:00 2001 From: Jakub <106778416+MarekZegare4@users.noreply.github.com> Date: Mon, 26 Oct 2026 12:35:31 +0100 Subject: [PATCH] fix(ui): the empty channel list says 'Fav only' when that filter hides every channel (#54) Co-Authored-By: Claude Sonnet 5.5 --- examples/companion_radio/ui-new/MessagesScreen.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/companion_radio/ui-new/MessagesScreen.h b/examples/companion_radio/ui-new/MessagesScreen.h index af256bbd..c3727970 100644 --- a/examples/companion_radio/ui-new/MessagesScreen.h +++ b/examples/companion_radio/ui-new/MessagesScreen.h @@ -1421,7 +1421,10 @@ public: drawList(display, total, _channel_sel, _channel_scroll, [&](int list_idx, int y, bool sel, int reserve) { drawRowSelection(display, y, sel, reserve); if (list_idx == _num_channels) { // the synthetic "Add" row - display.setCursor(2, y); display.print("+ Add channel"); + display.setCursor(2, y); + // Settings > Channels = Fav hides all but the favourites; say so when that leaves nothing. + const NodePrefs* np = _task->getNodePrefs(); + display.print(_num_channels == 0 && np && np->ch_fav_only ? "+ Add (Fav only)" : "+ Add channel"); display.setColor(UIColor::primary_txt); return; }