fix(color): Update top bar date & time when in setup pages (#3037)
This commit is contained in:
@@ -247,6 +247,13 @@ void TabsGroup::checkEvents()
|
|||||||
if (currentTab) {
|
if (currentTab) {
|
||||||
currentTab->checkEvents();
|
currentTab->checkEvents();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static uint32_t lastRefresh = 0;
|
||||||
|
uint32_t now = RTOS_GET_MS();
|
||||||
|
if (now - lastRefresh >= 5000) {
|
||||||
|
lastRefresh = now;
|
||||||
|
header.invalidate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TabsGroup::onEvent(event_t event)
|
void TabsGroup::onEvent(event_t event)
|
||||||
|
|||||||
Reference in New Issue
Block a user