This commit is contained in:
Your Name
2024-05-09 21:46:53 -05:00
parent 3014512128
commit 44878b6db0
2 changed files with 8 additions and 1 deletions

View File

@@ -244,6 +244,11 @@ void OffroadHome::refresh() {
bool updateAvailable = update_widget->refresh();
int alerts = alerts_widget->refresh();
if (alerts > 0 && !alerts_widget->isVisible()) {
update_notif->setVisible(true);
} else if (alerts == 0 && alerts_widget->isVisible()) {
update_notif->setVisible(false);
}
// pop-up new notification
// CLEARPILOT temp disabled update notifications