mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-01 18:31:58 +00:00
fix(ui): the empty channel list says 'Fav only' when that filter hides every channel (#54)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
2ae55e97ac
commit
009bde0db4
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user