Don't show the battery item if there's no battery

CCBUG: 335862
wilder-5.14
Aleix Pol 12 years ago
parent 6a77e7cd02
commit f5d7ff8df8
  1. 5
      lookandfeel/contents/components/InfoPane.qml

@ -44,9 +44,10 @@ ColumnLayout {
RowLayout {
Layout.alignment: Qt.AlignRight
visible: pmSource.connectedSources != ""
visible: pmSource.connectedSources != "" && pmSource.data["Battery"]["Has Battery"]
PW.BatteryIcon {
id: battery
hasBattery: true
percent: pmSource.data["Battery0"]["Percent"]
pluggedIn: pmSource.data["AC Adapter"]["Plugged in"]

Loading…
Cancel
Save