From da0db9acab5ad37e7d59e19dfdcd0363b6376fc4 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 25 Feb 2016 15:06:25 +0100 Subject: [PATCH] fix charging state of battery applet --- applets/battery/package/contents/ui/battery.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/applets/battery/package/contents/ui/battery.qml b/applets/battery/package/contents/ui/battery.qml index 1da78bfb..e08f9369 100644 --- a/applets/battery/package/contents/ui/battery.qml +++ b/applets/battery/package/contents/ui/battery.qml @@ -152,7 +152,9 @@ Item { Layout.fillHeight: true hasBattery: true percent: pmSource.data["Battery"]["Percent"] - pluggedIn: pmSource.data["AC Adapter"]["Plugged in"] + pluggedIn: pmSource.data["Battery"]["State"] == "Charging" + //FIXME: AC Adapter is not present there + //pmSource.data["AC Adapter"]["Plugged in"] // height: batteryContainer.iconSize // width: height }