aloow configuration of notif timeout duration

This commit is contained in:
end-4
2025-09-20 10:47:09 +02:00
parent b9ae5cafa0
commit 3a01dad945
3 changed files with 22 additions and 2 deletions
@@ -60,7 +60,7 @@ Singleton {
component NotifTimer: Timer {
required property int notificationId
interval: 5000
interval: 7000
running: true
onTriggered: () => {
root.timeoutNotification(notificationId);
@@ -168,7 +168,7 @@ Singleton {
if (notification.expireTimeout != 0) {
newNotifObject.timer = notifTimerComponent.createObject(root, {
"notificationId": newNotifObject.notificationId,
"interval": notification.expireTimeout < 0 ? 5000 : notification.expireTimeout,
"interval": notification.expireTimeout < 0 ? (Config?.options.notifications.timeout ?? 7000) : notification.expireTimeout,
});
}
}