critical notification & bugfix

This commit is contained in:
Flummi 2024-01-25 16:53:07 +01:00
parent d821e5b5c0
commit 4adea966fa
Signed by: Flummi
GPG Key ID: AA2AEF822A6F4817

View File

@ -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
}
}