mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
fix charging state of battery applet
This commit is contained in:
parent
2163b4fed8
commit
da0db9acab
1 changed files with 3 additions and 1 deletions
|
|
@ -152,7 +152,9 @@ Item {
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
hasBattery: true
|
hasBattery: true
|
||||||
percent: pmSource.data["Battery"]["Percent"]
|
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
|
// height: batteryContainer.iconSize
|
||||||
// width: height
|
// width: height
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue