diff --git a/plasmoid/package/contents/ui/DeviceDelegate.qml b/plasmoid/package/contents/ui/DeviceDelegate.qml --- a/plasmoid/package/contents/ui/DeviceDelegate.qml +++ b/plasmoid/package/contents/ui/DeviceDelegate.qml @@ -253,11 +253,20 @@ } // Commands - PlasmaComponents.Label { - visible: rc.available && commandsModel.rowCount() > 0 - text: i18n("Run command") + PlasmaComponents.ListItem { + visible: rc.available + PlasmaComponents.Label { + text: i18n("Run command:") + } + PlasmaComponents.Button + { + id: addCommandButton + iconSource: "list-add" + anchors.right: parent.right + tooltip: i18n("Add command") + onClicked: rc.plugin.editCommands() + } } - Repeater { id: commandsView visible: rc.available