power: Don't show the battery usage card if there is no data

Hide the entire card when there is no data, not just the graph
This commit is contained in:
Mikhail Vinogradov 2023-05-26 12:25:35 +03:00 committed by Devin Lin
parent e2822b7c02
commit 233ccba671

View file

@ -43,6 +43,7 @@ Kirigami.ScrollablePage {
MobileForm.FormCard {
Layout.fillWidth: true
visible: history.count > 1
contentItem: ColumnLayout {
spacing: 0