plasmoid: fix missing device name

display is not defined, use model.name instead.
This commit is contained in:
Fushan Wen 2022-06-23 00:11:46 +08:00 committed by Nicolas Fella
parent ba69e4a05a
commit 5f94c49503

View file

@ -73,7 +73,7 @@ PlasmaComponents.ListItem
PlasmaComponents.Label {
id: deviceName
elide: Text.ElideRight
text: display
text: model.name
Layout.fillWidth: true
textFormat: Text.PlainText
}
@ -283,7 +283,7 @@ PlasmaComponents.ListItem
anchors.left: parent.left
}
PlasmaComponents.Label {
text: appName + ": " + (title.length>0 ? (appName==title?notitext:title+": "+notitext) : display)
text: appName + ": " + (title.length>0 ? (appName==title?notitext:title+": "+notitext) : model.name)
anchors.right: replyButton.left
anchors.left: notificationIcon.right
elide: listitem.checked ? Text.ElideNone : Text.ElideRight