This commit is contained in:
Your Name
2024-05-09 21:48:47 -05:00
parent 44878b6db0
commit 8b8e78d04a
2 changed files with 4 additions and 4 deletions

View File

@@ -245,9 +245,9 @@ void OffroadHome::refresh() {
bool updateAvailable = update_widget->refresh();
int alerts = alerts_widget->refresh();
if (alerts > 0 && !alerts_widget->isVisible()) {
update_notif->setVisible(true);
alerts_widget->setVisible(true);
} else if (alerts == 0 && alerts_widget->isVisible()) {
update_notif->setVisible(false);
alerts_widget->setVisible(false);
}
// pop-up new notification