summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-19 22:51:01 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-19 22:51:01 +1000
commit3fb78654a2c919355c50dbc364827704233ce801 (patch)
tree9d63ac11ab729021dc25a3ec4add70da16da7a81 /services
parentsidebar/notifs: fix count updating (diff)
downloadcaelestia-shell-3fb78654a2c919355c50dbc364827704233ce801.tar.gz
caelestia-shell-3fb78654a2c919355c50dbc364827704233ce801.tar.bz2
caelestia-shell-3fb78654a2c919355c50dbc364827704233ce801.zip
notifs: persist time
Diffstat (limited to 'services')
-rw-r--r--services/Notifs.qml9
1 files changed, 5 insertions, 4 deletions
diff --git a/services/Notifs.qml b/services/Notifs.qml
index c5f0700..cb52bc5 100644
--- a/services/Notifs.qml
+++ b/services/Notifs.qml
@@ -23,6 +23,7 @@ Singleton {
return;
storage.setText(JSON.stringify(list.filter(n => !n.closed).map(n => ({
+ time: n.time,
id: n.id,
summary: n.summary,
body: n.body,
@@ -150,10 +151,10 @@ Singleton {
property bool resident: notification?.resident ?? false
property bool hasActionIcons: notification?.hasActionIcons ?? false
property list<var> actions: notification?.actions.map(a => ({
- identifier: a.identifier,
- text: a.text,
- invoke: () => a.invoke()
- })) ?? []
+ identifier: a.identifier,
+ text: a.text,
+ invoke: () => a.invoke()
+ })) ?? []
readonly property Timer timer: Timer {
running: true