tray: use Repeater.count for visibility instead of model values
This commit is contained in:
parent
fb82cfc478
commit
45814286b8
1 changed files with 2 additions and 1 deletions
|
|
@ -10,12 +10,13 @@ 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.values.length > 0
|
visible: S.Modules.tray.enable && _trayRepeater.count > 0
|
||||||
|
|
||||||
required property var bar
|
required property var bar
|
||||||
property var _activeMenu: null
|
property var _activeMenu: null
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
|
id: _trayRepeater
|
||||||
model: SystemTray.items
|
model: SystemTray.items
|
||||||
|
|
||||||
delegate: Item {
|
delegate: Item {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue