sidebar/notifs: sort groups by latest notif
This commit is contained in:
parent
ccc398b2a0
commit
c6b91f1299
1 changed files with 4 additions and 1 deletions
|
|
@ -97,7 +97,10 @@ Item {
|
|||
spacing: Appearance.spacing.small
|
||||
|
||||
model: ScriptModel {
|
||||
values: [...new Set(Notifs.list.filter(n => !n.closed).map(n => n.appName))].reverse()
|
||||
values: {
|
||||
const list = Notifs.list.filter(n => !n.closed).sort((a, b) => b.time - a.time).map(n => [n.appName, null]);
|
||||
return [...new Map(list).keys()];
|
||||
}
|
||||
}
|
||||
|
||||
StyledScrollBar.vertical: StyledScrollBar {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue