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,11 +167,13 @@ Singleton {
// Popup // Popup
if (!root.popupInhibited) { if (!root.popupInhibited) {
newNotifObject.popup = true; newNotifObject.popup = true;
if (notification.expireTimeout != 0) {
newNotifObject.timer = notifTimerComponent.createObject(root, { newNotifObject.timer = notifTimerComponent.createObject(root, {
"notificationId": newNotifObject.notificationId, "notificationId": newNotifObject.notificationId,
"interval": notification.expireTimeout < 0 ? 5000 : notification.expireTimeout, "interval": notification.expireTimeout < 0 ? 5000 : notification.expireTimeout,
}); });
} }
}
root.notify(newNotifObject); root.notify(newNotifObject);
// console.log(notifToString(newNotifObject)); // console.log(notifToString(newNotifObject));