tray: use .values.length for visibility - UntypedObjectModel has no count property

This commit is contained in:
Damocles 2026-04-25 00:38:18 +02:00
parent b6fe670467
commit fb82cfc478
2 changed files with 1 additions and 2 deletions

View file

@ -10,7 +10,7 @@ import "../services" as S
RowLayout { RowLayout {
id: root id: root
spacing: S.Theme.moduleSpacing + 2 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 required property var bar
property var _activeMenu: null property var _activeMenu: null

View file

@ -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: Type margins is used but it is not resolved [unresolved-type]
shell/modules/Tooltip.qml: unknown grouped property scope margins. [unqualified] shell/modules/Tooltip.qml: unknown grouped property scope margins. [unqualified]
shell/modules/TrayMenu.qml: Unqualified access [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: 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: 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] shell/modules/TrayModule.qml: Unqualified access [unqualified]