Add a button to open command setup menu in plasmoid
Summary: This patch adds a button to the plasmoid to allow adding commands by opening the menu on the remote device. Reviewers: #vdg, nicolasfella, albertvaka Reviewed By: nicolasfella Subscribers: kdeconnect Tags: #kde_connect Differential Revision: https://phabricator.kde.org/D16535
This commit is contained in:
parent
e6d84ece34
commit
c546c77040
1 changed files with 13 additions and 4 deletions
|
@ -253,11 +253,20 @@ PlasmaComponents.ListItem
|
||||||
}
|
}
|
||||||
|
|
||||||
// Commands
|
// Commands
|
||||||
|
PlasmaComponents.ListItem {
|
||||||
|
visible: rc.available
|
||||||
PlasmaComponents.Label {
|
PlasmaComponents.Label {
|
||||||
visible: rc.available && commandsModel.rowCount() > 0
|
text: i18n("Run command:")
|
||||||
text: i18n("Run command")
|
}
|
||||||
|
PlasmaComponents.Button
|
||||||
|
{
|
||||||
|
id: addCommandButton
|
||||||
|
iconSource: "list-add"
|
||||||
|
anchors.right: parent.right
|
||||||
|
tooltip: i18n("Add command")
|
||||||
|
onClicked: rc.plugin.editCommands()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
id: commandsView
|
id: commandsView
|
||||||
visible: rc.available
|
visible: rc.available
|
||||||
|
|
Loading…
Reference in a new issue