critical notification & bugfix
This commit is contained in:
parent
d821e5b5c0
commit
4adea966fa
|
@ -47,8 +47,10 @@ Item {
|
||||||
notification.iconName = "notification-battery-low";
|
notification.iconName = "notification-battery-low";
|
||||||
notification.sendEvent();
|
notification.sendEvent();
|
||||||
}
|
}
|
||||||
else // reset notifications if battery level is over batteryThreshold
|
// reset notifications if battery level is over batteryThreshold
|
||||||
|
if((batteryPercent > batteryThreshold || batteryPercent < 0) && notification_sent && notifications) {
|
||||||
notification_sent = false;
|
notification_sent = false;
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -62,7 +64,7 @@ Item {
|
||||||
id: notification
|
id: notification
|
||||||
componentName: "plasma_workspace"
|
componentName: "plasma_workspace"
|
||||||
eventId: "notification"
|
eventId: "notification"
|
||||||
flags: Notification.Persistent
|
flags: Notification.DefaultEvent
|
||||||
urgency: Notification.HighUrgency
|
urgency: Notification.CriticalUrgency
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user