Revert "Fix devicename in Plasmoid"

This reverts commit e029c61935.
This commit is contained in:
Nicolas Fella 2018-11-26 15:50:44 +01:00
parent 2e26abbd18
commit 99e335ede2

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)", deviceName, battery.displayString) : deviceName
text: (battery.available && battery.charge > -1) ? i18n("%1 (%2)", display, battery.displayString) : display
Layout.fillWidth: true
textFormat: Text.PlainText
}