From 3bd542aa65ffbaca4283ad65034463db312c529c Mon Sep 17 00:00:00 2001 From: Alvin <153151121+Alvin-HZ@users.noreply.github.com> Date: Sun, 20 Jul 2025 11:24:13 -0400 Subject: [PATCH] do not timeout notification if expiration is 0 --- .config/quickshell/ii/services/Notifications.qml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.config/quickshell/ii/services/Notifications.qml b/.config/quickshell/ii/services/Notifications.qml index 490ebf8d9..446abeff7 100644 --- a/.config/quickshell/ii/services/Notifications.qml +++ b/.config/quickshell/ii/services/Notifications.qml @@ -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);