fix(home): the title bar from the first frame when the Clock page is hidden

Home starts on page 0, the Clock. render() chose whether to draw the bar
before moving on from a hidden page, so that frame had none and the next
refresh came 5 s later or on a key press.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-10-30 09:46:43 +01:00
co-authored by Claude Opus 5.5
parent 6ce3ed0ff9
commit 751cbc1e79
+4 -3
View File
@@ -1306,6 +1306,10 @@ public:
}
int render(DisplayDriver& display) override {
// Ensure current page is visible (after a settings change, or at the start
// with the Clock hidden). First: the title bar below goes by the page.
if (!isPageVisible(_page)) _page = navPage(_page, +1);
char tmp[80];
int mq_delay = 0; // >0 while a selected row's name is marquee-scrolling
int anim_ms = 0; // >0 while something animates: a page turn
@@ -1365,9 +1369,6 @@ public:
}
}
// ensure current page is visible (e.g. after settings change)
if (!isPageVisible(_page)) _page = navPage(_page, +1);
// curr page indicator — a row of small page icons, one per visible page, with
// the current page underlined. Hidden on CLOCK and LOCK (full screen used for
// the clock/dashboard).