sidebar/notifs: fix group sorting
This commit is contained in:
parent
ef3bcc290a
commit
e2ca5a4e8f
1 changed files with 6 additions and 2 deletions
|
|
@ -28,8 +28,12 @@ Item {
|
||||||
|
|
||||||
model: ScriptModel {
|
model: ScriptModel {
|
||||||
values: {
|
values: {
|
||||||
const list = Notifs.list.map(n => [n.appName, null]);
|
const map = new Map();
|
||||||
return [...new Map(list).keys()];
|
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()
|
onValuesChanged: root.flagChanged()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue