wip
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user