notifications: hover prevents timeout

This commit is contained in:
end-4
2025-08-19 21:15:59 +07:00
parent 7cbc707308
commit 891a226fdb
2 changed files with 18 additions and 1 deletions
@@ -204,6 +204,12 @@ Singleton {
root.discardAll();
}
function cancelTimeout(id) {
const index = root.list.findIndex((notif) => notif.notificationId === id);
if (root.list[index] != null)
root.list[index].timer.stop();
}
function timeoutNotification(id) {
const index = root.list.findIndex((notif) => notif.notificationId === id);
if (root.list[index] != null)