Fix hiding the EnergyView configuration button if there's nothing to configure
This commit is contained in:
parent
3a64d41c4a
commit
ed28b21907
@ -51,7 +51,7 @@ MainViewBase {
|
|||||||
trigger: function() {
|
trigger: function() {
|
||||||
pageStack.push("energy/EnergySettingsPage.qml", {energyManager: energyManager});
|
pageStack.push("energy/EnergySettingsPage.qml", {energyManager: energyManager});
|
||||||
},
|
},
|
||||||
visible: energyMeters.count > 1 || allConsumers.count > 0
|
visible: energyMeters.count > 1 || allConsumers.count - Math.min(energyMeters.count, 1) > 0
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user