Commit 58def605 authored by Nate Graham's avatar Nate Graham
Browse files

Revert "[applets/batterymonitor] Collapse inhibitions list properly"

This broke showing the inhibitions list. Will find a better way.

This reverts commit ce6a0ec0.
parent f364b62c
...@@ -61,11 +61,9 @@ ColumnLayout { ...@@ -61,11 +61,9 @@ ColumnLayout {
ColumnLayout { ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
Layout.leftMargin: units.gridUnit + units.smallSpacing // width of checkbox and spacer Layout.leftMargin: units.gridUnit + units.smallSpacing // width of checkbox and spacer
visible: inhibitingAppsList.visible || laptopLidWarning.visible
spacing: units.smallSpacing spacing: units.smallSpacing
InhibitionHint { InhibitionHint {
id: laptopLidWarning
Layout.fillWidth: true Layout.fillWidth: true
visible: pmSource.data["PowerDevil"] && pmSource.data["PowerDevil"]["Is Lid Present"] && !pmSource.data["PowerDevil"]["Triggers Lid Action"] ? true : false visible: pmSource.data["PowerDevil"] && pmSource.data["PowerDevil"]["Is Lid Present"] && !pmSource.data["PowerDevil"]["Triggers Lid Action"] ? true : false
iconSource: "computer-laptop" iconSource: "computer-laptop"
...@@ -73,7 +71,6 @@ ColumnLayout { ...@@ -73,7 +71,6 @@ ColumnLayout {
} }
InhibitionHint { InhibitionHint {
id: inhibitingAppsList
Layout.fillWidth: true Layout.fillWidth: true
visible: inhibitions.length > 0 visible: inhibitions.length > 0
iconSource: inhibitions.length > 0 ? inhibitions[0].Icon || "" : "" iconSource: inhibitions.length > 0 ? inhibitions[0].Icon || "" : ""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment