From fb82cfc478a0f166f688739674aca3c9770efe8b Mon Sep 17 00:00:00 2001 From: Damocles Date: Sat, 25 Apr 2026 00:38:18 +0200 Subject: [PATCH] tray: use .values.length for visibility - UntypedObjectModel has no count property --- shell/modules/TrayModule.qml | 2 +- test/qmllint-baseline.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/shell/modules/TrayModule.qml b/shell/modules/TrayModule.qml index 3f4fa81..984807f 100644 --- a/shell/modules/TrayModule.qml +++ b/shell/modules/TrayModule.qml @@ -10,7 +10,7 @@ import "../services" as S RowLayout { id: root spacing: S.Theme.moduleSpacing + 2 - visible: S.Modules.tray.enable && SystemTray.items.count > 0 + visible: S.Modules.tray.enable && SystemTray.items.values.length > 0 required property var bar property var _activeMenu: null diff --git a/test/qmllint-baseline.txt b/test/qmllint-baseline.txt index 06ceb4d..c11e850 100644 --- a/test/qmllint-baseline.txt +++ b/test/qmllint-baseline.txt @@ -70,7 +70,6 @@ shell/modules/Tooltip.qml: Type PanelWindow is not creatable. [uncreatable-type] shell/modules/Tooltip.qml: Type margins is used but it is not resolved [unresolved-type] shell/modules/Tooltip.qml: unknown grouped property scope margins. [unqualified] shell/modules/TrayMenu.qml: Unqualified access [unqualified] -shell/modules/TrayModule.qml: Member "count" not found on type "UntypedObjectModel" [missing-property] shell/modules/TrayModule.qml: Member "screen" not found on type "QObject" [missing-property] shell/modules/TrayModule.qml: Type "qs::dbus::dbusmenu::DBusMenuHandle" of property "menu" not found. This is likely due to a missing dependency entry or a type not being exposed declaratively. [unresolved-type] shell/modules/TrayModule.qml: Unqualified access [unqualified]