sidebar/notifs: fix group sorting

This commit is contained in:
2 * r + 2 * t 2025-09-20 16:28:46 +10:00
parent ef3bcc290a
commit e2ca5a4e8f

View file

@ -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()
}