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 {
|
||||
id: root
|
||||
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
|
||||
property var _activeMenu: null
|
||||
|
||||
Repeater {
|
||||
id: _trayRepeater
|
||||
model: SystemTray.items
|
||||
|
||||
delegate: Item {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue