Fix devicename in Plasmoid

This commit is contained in:
Nicolas Fella 2018-11-22 16:45:39 +01:00
parent 8bd15a95c2
commit e029c61935

View file

@ -50,7 +50,7 @@ PlasmaComponents.ListItem
PlasmaComponents.Label {
horizontalAlignment: Text.AlignHCenter
elide: Text.ElideRight
text: (battery.available && battery.charge > -1) ? i18n("%1 (%2)", display, battery.displayString) : display
text: (battery.available && battery.charge > -1) ? i18n("%1 (%2)", deviceName, battery.displayString) : deviceName
Layout.fillWidth: true
textFormat: Text.PlainText
}