fix(FoldableHeader): do not display the switch if the model is empty

makes no sense to be able to arrange by community/collection if the the
underlying model is empty
This commit is contained in:
Lukáš Tinkl 2024-03-15 00:13:40 +01:00 committed by Lukáš Tinkl
parent be7e09ba97
commit a6172eb1de
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ Rectangle {
id: modeSwitch
objectName: "switch"
visible: !!text
visible: !!text && !!root.ListView.view && root.ListView.view.model && root.ListView.view.model.count
LayoutMirroring.enabled: true
LayoutMirroring.childrenInherit: true
textColor: Theme.palette.baseColor1