do not timeout notification if expiration is 0

This commit is contained in:
Alvin
2025-07-20 11:24:13 -04:00
parent 42b483b878
commit 3bd542aa65
@@ -167,10 +167,12 @@ Singleton {
// Popup
if (!root.popupInhibited) {
newNotifObject.popup = true;
newNotifObject.timer = notifTimerComponent.createObject(root, {
"notificationId": newNotifObject.notificationId,
"interval": notification.expireTimeout < 0 ? 5000 : notification.expireTimeout,
});
if (notification.expireTimeout != 0) {
newNotifObject.timer = notifTimerComponent.createObject(root, {
"notificationId": newNotifObject.notificationId,
"interval": notification.expireTimeout < 0 ? 5000 : notification.expireTimeout,
});
}
}
root.notify(newNotifObject);