From 5f94c4950349cfad2730593380636649553de9c7 Mon Sep 17 00:00:00 2001 From: Fushan Wen Date: Thu, 23 Jun 2022 00:11:46 +0800 Subject: [PATCH] plasmoid: fix missing device name display is not defined, use model.name instead. --- plasmoid/package/contents/ui/DeviceDelegate.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plasmoid/package/contents/ui/DeviceDelegate.qml b/plasmoid/package/contents/ui/DeviceDelegate.qml index 76f0bdbea..595722195 100644 --- a/plasmoid/package/contents/ui/DeviceDelegate.qml +++ b/plasmoid/package/contents/ui/DeviceDelegate.qml @@ -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