From 58def6053ee8d0204e278b578761712132e377b3 Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Wed, 20 May 2020 14:26:43 -0600 Subject: [PATCH] Revert "[applets/batterymonitor] Collapse inhibitions list properly" This broke showing the inhibitions list. Will find a better way. This reverts commit ce6a0ec0aa6ace2c46ac7562b2d602961acb2f7b. --- .../batterymonitor/package/contents/ui/PowerManagementItem.qml | 3 --- 1 file changed, 3 deletions(-) diff --git a/applets/batterymonitor/package/contents/ui/PowerManagementItem.qml b/applets/batterymonitor/package/contents/ui/PowerManagementItem.qml index d6805523c..7427c055d 100644 --- a/applets/batterymonitor/package/contents/ui/PowerManagementItem.qml +++ b/applets/batterymonitor/package/contents/ui/PowerManagementItem.qml @@ -61,11 +61,9 @@ ColumnLayout { ColumnLayout { Layout.fillWidth: true Layout.leftMargin: units.gridUnit + units.smallSpacing // width of checkbox and spacer - visible: inhibitingAppsList.visible || laptopLidWarning.visible spacing: units.smallSpacing InhibitionHint { - id: laptopLidWarning Layout.fillWidth: true visible: pmSource.data["PowerDevil"] && pmSource.data["PowerDevil"]["Is Lid Present"] && !pmSource.data["PowerDevil"]["Triggers Lid Action"] ? true : false iconSource: "computer-laptop" @@ -73,7 +71,6 @@ ColumnLayout { } InhibitionHint { - id: inhibitingAppsList Layout.fillWidth: true visible: inhibitions.length > 0 iconSource: inhibitions.length > 0 ? inhibitions[0].Icon || "" : ""