notifications: add silent button

This commit is contained in:
end-4
2025-06-01 10:12:37 +02:00
parent 834a684d6f
commit 771ff14462
3 changed files with 43 additions and 22 deletions
@@ -60,10 +60,12 @@ Singleton {
destroy()
}
}
property bool silent: false
property var filePath: Directories.notificationsPath
property list<Notif> list: []
property var popupList: list.filter((notif) => notif.popup);
property bool popupInhibited: GlobalStates?.sidebarRightOpen ?? false
property bool popupInhibited: (GlobalStates?.sidebarRightOpen ?? false) || silent
property var latestTimeForApp: ({})
Component {
id: notifComponent