notifs: persist time
This commit is contained in:
parent
eab211b289
commit
3fb78654a2
1 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue