forked from Shinonome/dots-hyprland
do not timeout notification if expiration is 0
This commit is contained in:
@@ -167,10 +167,12 @@ Singleton {
|
|||||||
// Popup
|
// Popup
|
||||||
if (!root.popupInhibited) {
|
if (!root.popupInhibited) {
|
||||||
newNotifObject.popup = true;
|
newNotifObject.popup = true;
|
||||||
newNotifObject.timer = notifTimerComponent.createObject(root, {
|
if (notification.expireTimeout != 0) {
|
||||||
"notificationId": newNotifObject.notificationId,
|
newNotifObject.timer = notifTimerComponent.createObject(root, {
|
||||||
"interval": notification.expireTimeout < 0 ? 5000 : notification.expireTimeout,
|
"notificationId": newNotifObject.notificationId,
|
||||||
});
|
"interval": notification.expireTimeout < 0 ? 5000 : notification.expireTimeout,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
root.notify(newNotifObject);
|
root.notify(newNotifObject);
|
||||||
|
|||||||
Reference in New Issue
Block a user