From 5cc205b5de8b750304a4d28b9cc35f456af9c01d Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Mon, 24 Sep 2018 21:49:18 +0200 Subject: [PATCH] [App] Show text if no commands are defined --- app/qml/runcommand.qml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/qml/runcommand.qml b/app/qml/runcommand.qml index 5b30ea5eb..415fc6963 100644 --- a/app/qml/runcommand.qml +++ b/app/qml/runcommand.qml @@ -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 + } + }