mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-01 18:31:58 +00:00
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:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user