Commit 1b9826d3 authored by Fabian Vogt's avatar Fabian Vogt
Browse files

applets/batterymonitor: Use "video-display-brightness" for !hasBatteries

f9e39815 ("applets/batterymonitor: Improve for desktop systems") changed the
plasmoid to use a plain icon instead of the CompactRepresentation if there are
no batteries.
While 471cc374 ("applets/batterymonitor: fix CompactRepresentation") brought
the use of the CompactRepresentation back, the plain icon is still used.

For the case that there are no batteries and brightness controls available,
it fell back to "battery", which has no symbolic variant. Change that to use
the symbolic "video-display-brightness" as well.

BUG: 448520
parent d8215d54
Pipeline #125441 passed with stage
in 10 minutes and 58 seconds
......@@ -93,7 +93,7 @@ Item {
return parts.join("\n");
Plasmoid.icon: !hasBatteries && hasBrightness ? "video-display-brightness" : "battery"
Plasmoid.icon: !hasBatteries ? "video-display-brightness" : "battery"
property bool disableBrightnessUpdate: true
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