diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-20 16:28:46 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-20 16:28:46 +1000 |
| commit | e2ca5a4e8fbbe2144364797950f434f1edeaa405 (patch) | |
| tree | 02b13f73686058b216cdfe1d7482fc238833d5f8 /modules | |
| parent | notifs: fix persistence sorting order (diff) | |
| download | caelestia-shell-e2ca5a4e8fbbe2144364797950f434f1edeaa405.tar.gz caelestia-shell-e2ca5a4e8fbbe2144364797950f434f1edeaa405.tar.bz2 caelestia-shell-e2ca5a4e8fbbe2144364797950f434f1edeaa405.zip | |
sidebar/notifs: fix group sorting
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/sidebar/NotifDockList.qml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/sidebar/NotifDockList.qml b/modules/sidebar/NotifDockList.qml index 33a9306..dbb5092 100644 --- a/modules/sidebar/NotifDockList.qml +++ b/modules/sidebar/NotifDockList.qml @@ -28,8 +28,12 @@ Item { model: ScriptModel { values: { - const list = Notifs.list.map(n => [n.appName, null]); - return [...new Map(list).keys()]; + const map = new Map(); + for (const n of Notifs.notClosed) + map.set(n.appName, null); + for (const n of Notifs.list) + map.set(n.appName, null); + return [...map.keys()]; } onValuesChanged: root.flagChanged() } |