From b427427ddd078a1d48ef9532fb18cbe2b0d3f32f Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Wed, 29 Dec 2021 21:29:19 +0300 Subject: [PATCH] [applets/batterymonitor] CompactRepresentation: Fix ReferenceError Fixes the following error: /usr/share/plasma/plasmoids/org.kde.plasma.battery/contents/ui/CompactRepresentation.qml:74: ReferenceError: batteryLabel is not defined batteryLabel does not exist ever since commit 27ac0b760855bc5adfe85baed621bcf1efcc9194 back in 2016, so an attempt to calculate some icon's height based on its size was bound to fail. --- .../package/contents/ui/CompactRepresentation.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applets/batterymonitor/package/contents/ui/CompactRepresentation.qml b/applets/batterymonitor/package/contents/ui/CompactRepresentation.qml index 7b442c17d..e0fcb71a3 100644 --- a/applets/batterymonitor/package/contents/ui/CompactRepresentation.qml +++ b/applets/batterymonitor/package/contents/ui/CompactRepresentation.qml @@ -71,7 +71,7 @@ MouseArea { id: batteryIcon anchors.centerIn: parent - height: root.isConstrained ? batteryContainer.iconSize : batteryContainer.iconSize - batteryLabel.height + height: batteryContainer.iconSize width: height hasBattery: batteryContainer.hasBattery