critical notification & bugfix
This commit is contained in:
parent
d821e5b5c0
commit
4adea966fa
|
@ -47,8 +47,10 @@ Item {
|
|||
notification.iconName = "notification-battery-low";
|
||||
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;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -62,7 +64,7 @@ Item {
|
|||
id: notification
|
||||
componentName: "plasma_workspace"
|
||||
eventId: "notification"
|
||||
flags: Notification.Persistent
|
||||
urgency: Notification.HighUrgency
|
||||
flags: Notification.DefaultEvent
|
||||
urgency: Notification.CriticalUrgency
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user