[App] Show text if no commands are defined

This commit is contained in:
Nicolas Fella 2018-09-24 21:49:18 +02:00
parent 5ae67e0feb
commit 5cc205b5de

View file

@ -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
}
}