fix(color): Update top bar date & time when in setup pages (#3037)

This commit is contained in:
philmoz
2023-01-15 12:06:18 +10:00
committed by GitHub
parent a68c0cf58a
commit dca52c4ae5
+7
View File
@@ -247,6 +247,13 @@ void TabsGroup::checkEvents()
if (currentTab) {
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)