[App] Show text if no commands are defined
This commit is contained in:
parent
5ae67e0feb
commit
5cc205b5de
1 changed files with 7 additions and 0 deletions
|
@ -37,6 +37,7 @@ Kirigami.Page
|
|||
}
|
||||
|
||||
ListView {
|
||||
id: commandsList
|
||||
anchors.fill: parent
|
||||
model: RemoteCommandsModel {
|
||||
deviceId: pluginInterface.deviceId
|
||||
|
@ -49,5 +50,11 @@ Kirigami.Page
|
|||
}
|
||||
}
|
||||
|
||||
Label {
|
||||
visible: commandsList.count === 0
|
||||
text: i18n("No commands defined")
|
||||
anchors.centerIn: parent
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue