Commit dc62990e authored by Fabian Vogt's avatar Fabian Vogt
Browse files

applets/batterymonitor: Use "Power Management" as fallback title

If neither batteries nor brightness controls are present, set the title
to "Power Management".
parent 1b9826d3
Pipeline #125448 passed with stage
in 10 minutes and 3 seconds
......@@ -20,9 +20,9 @@ Item {
id: batterymonitor
Plasmoid.switchWidth: PlasmaCore.Units.gridUnit * 10
Plasmoid.switchHeight: PlasmaCore.Units.gridUnit * 10
Plasmoid.title: (hasBatteries === hasBrightness ? i18n("Battery and Brightness") :
hasBrightness ? i18n("Brightness") :
hasBatteries ? i18n("Battery") : "")
Plasmoid.title: (hasBatteries && hasBrightness ? i18n("Battery and Brightness") :
hasBrightness ? i18n("Brightness") :
hasBatteries ? i18n("Battery") : i18n("Power Management"))
LayoutMirroring.enabled: Qt.application.layoutDirection == Qt.RightToLeft
LayoutMirroring.childrenInherit: 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