fix(NetworkFilter): fixup allSelected/noneSelected

- there's no `len` property in `SFPM`; fixes correctly displaying "All
networks" when all are selected
This commit is contained in:
Lukáš Tinkl 2024-04-09 15:01:39 +02:00 committed by Lukáš Tinkl
parent 3e051fd79c
commit fb2d1ad0f0
1 changed files with 2 additions and 2 deletions

View File

@ -45,8 +45,8 @@ StatusComboBox {
readonly property string selectedChainName: NetworkModelHelpers.getChainName(root.flatNetworks, d.currentIndex)
readonly property string selectedIconUrl: NetworkModelHelpers.getChainIconUrl(root.flatNetworks, d.currentIndex)
readonly property bool allSelected: enabledFlatNetworks.len === root.flatNetworks.count
readonly property bool noneSelected: enabledFlatNetworks.len === 0
readonly property bool allSelected: enabledFlatNetworks.count === root.flatNetworks.count
readonly property bool noneSelected: enabledFlatNetworks.count === 0
// Persist selection between selectPopupLoader reloads
property int currentIndex: 0