From 233ccba671edc30983091b677b6a8183eb15baa1 Mon Sep 17 00:00:00 2001 From: Mikhail Vinogradov Date: Fri, 26 May 2023 12:25:35 +0300 Subject: [PATCH] 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 --- kcms/powermanagement/ui/BatteryPage.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/kcms/powermanagement/ui/BatteryPage.qml b/kcms/powermanagement/ui/BatteryPage.qml index 016d424a..add9d4e2 100644 --- a/kcms/powermanagement/ui/BatteryPage.qml +++ b/kcms/powermanagement/ui/BatteryPage.qml @@ -43,6 +43,7 @@ Kirigami.ScrollablePage { MobileForm.FormCard { Layout.fillWidth: true + visible: history.count > 1 contentItem: ColumnLayout { spacing: 0