fix charging state of battery applet

This commit is contained in:
Marco Martin 2016-02-25 15:06:25 +01:00
parent 2163b4fed8
commit da0db9acab

View file

@ -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
}