fix(warnings): Fixed qml warnings

Fixed qml warnings
This commit is contained in:
Noelia 2023-06-09 11:54:47 +02:00 committed by Noelia
parent f227a92cf1
commit 02baf36070
2 changed files with 33 additions and 30 deletions

View File

@ -31,7 +31,8 @@ StatusComboBox {
property string selectedChainName: ""
property string selectedIconUrl: ""
readonly property bool allSelected: root.enabledNetworks.count === root.allNetworks.count
readonly property bool allSelected: (!!root.enabledNetworks && !!root.allNetworks) ? root.enabledNetworks.count === root.allNetworks.count :
false
// Persist selection between selectPopupLoader reloads
property var currentModel: layer1Networks

View File

@ -765,6 +765,7 @@ QtObject {
}
function getColorForId(colorId) {
if(colorId) {
switch(colorId.toUpperCase()) {
case Constants.walletAccountColors.primary.toUpperCase():
return Theme.palette.customisationColors.blue
@ -796,6 +797,7 @@ QtObject {
return Theme.palette.customisationColors.blue
}
}
}
// Leave this function at the bottom of the file as QT Creator messes up the code color after this
function isPunct(c) {