Commit 7a40d72f authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Nate Graham
Browse files

applets/batterymonitor: Use the same property to define hasBatteries

Otherwise it looks weird when it gets out of sync because Has
Cumulative.

BUG: 448797
FIXED-IN: 5.24
parent d58b9eab
Pipeline #131238 passed with stage
in 9 minutes and 43 seconds
......@@ -19,7 +19,7 @@ MouseArea {
readonly property bool isConstrained: plasmoid.formFactor === PlasmaCore.Types.Vertical || plasmoid.formFactor === PlasmaCore.Types.Horizontal
property real brightnessError: 0
property QtObject batteries
property bool hasBatteries: batteries.count > 0
property bool hasBatteries: false
hoverEnabled: true
......
......@@ -198,6 +198,7 @@ Item {
}
Plasmoid.compactRepresentation: CompactRepresentation {
hasBatteries: batterymonitor.hasBatteries
batteries: batterymonitor.batteries
onWheel: {
......
Supports Markdown
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