Merge PR #852: Fix hiding the EnergyView configuration button if there's nothing to configure

pull/855/head
jenkins 2022-07-26 15:04:11 +02:00
commit 4991bca1a6
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ MainViewBase {
trigger: function() {
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
}
]