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

If neither batteries nor brightness controls are present, set the title
to "Power Management".


(cherry picked from commit dc62990eff)
wilder-5.24
Fabian Vogt 4 years ago committed by Nate Graham
parent 4f6c096bee
commit 6d563b404e
  1. 6
      applets/batterymonitor/package/contents/ui/main.qml

@ -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

Loading…
Cancel
Save