[app] Fix reading device name

This commit is contained in:
Nicolas Fella 2022-06-23 11:49:22 +02:00
parent 5f94c49503
commit bb5ab942b7
2 changed files with 2 additions and 2 deletions

View file

@ -63,7 +63,7 @@ Kirigami.ScrollablePage
delegate: Kirigami.BasicListItem { delegate: Kirigami.BasicListItem {
icon: iconName icon: iconName
iconColor: "transparent" iconColor: "transparent"
label: display label: model.name
subtitle: toolTip subtitle: toolTip
highlighted: false highlighted: false
onClicked: { onClicked: {

View file

@ -94,7 +94,7 @@ Kirigami.ApplicationWindow
delegate: Kirigami.Action { delegate: Kirigami.Action {
icon.name: model.iconName icon.name: model.iconName
icon.color: "transparent" icon.color: "transparent"
text: display + "\n" + toolTip text: model.name + "\n" + toolTip
visible: status & DevicesModel.Reachable visible: status & DevicesModel.Reachable
checked: pageStack.currentItem && pageStack.currentItem.currentDevice == device checked: pageStack.currentItem && pageStack.currentItem.currentDevice == device
onTriggered: { onTriggered: {