From 85bf62eaa2fd71eb15ef401e537457fb9098a540 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 1 Sep 2025 15:12:09 +0200 Subject: ... --- accounts/gkleen@sif/shell/quickshell/SystemTray.qml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'accounts/gkleen@sif/shell/quickshell/SystemTray.qml') diff --git a/accounts/gkleen@sif/shell/quickshell/SystemTray.qml b/accounts/gkleen@sif/shell/quickshell/SystemTray.qml index 024026a3..55b1690e 100644 --- a/accounts/gkleen@sif/shell/quickshell/SystemTray.qml +++ b/accounts/gkleen@sif/shell/quickshell/SystemTray.qml @@ -17,10 +17,12 @@ Item { spacing: 0 Repeater { - model: { - var trayItems = Array.from(SystemTray.items.values).filter(item => item.status !== Status.Passive); - trayItems.sort((a, b) => a.category !== b.category ? b.category - a.category : a.id.localeCompare(b.id)) - return trayItems; + model: ScriptModel { + values: { + var trayItems = Array.from(SystemTray.items.values).filter(item => item.status !== Status.Passive); + trayItems.sort((a, b) => a.category !== b.category ? b.category - a.category : a.id.localeCompare(b.id)) + return trayItems; + } } delegate: Item { -- cgit v1.2.3