Only show addCommand button when adding commands is supported
This commit is contained in:
parent
e0766ba532
commit
cefc743307
1 changed files with 2 additions and 1 deletions
|
@ -282,7 +282,7 @@ PlasmaComponents.ListItem
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
||||||
PlasmaComponents.Label {
|
PlasmaComponents.Label {
|
||||||
text: i18n("Run command:")
|
text: i18n("Run command")
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -292,6 +292,7 @@ PlasmaComponents.ListItem
|
||||||
iconSource: "list-add"
|
iconSource: "list-add"
|
||||||
tooltip: i18n("Add command")
|
tooltip: i18n("Add command")
|
||||||
onClicked: rc.plugin.editCommands()
|
onClicked: rc.plugin.editCommands()
|
||||||
|
visible: rc.plugin.canAddCommand
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Repeater {
|
Repeater {
|
||||||
|
|
Loading…
Reference in a new issue