mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-28 22:53: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
|
||||
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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue