Disable add and remove buttons while busy
This commit is contained in:
@@ -47,12 +47,14 @@ Pane {
|
|||||||
ToolTip.text: qsTr("Choose the folder containing the addons")
|
ToolTip.text: qsTr("Choose the folder containing the addons")
|
||||||
}
|
}
|
||||||
Button {
|
Button {
|
||||||
|
enabled: Engine.status == Engine.Ready && addonsReady
|
||||||
icon.name: "delete"
|
icon.name: "delete"
|
||||||
onClicked: Engine.setAddonsPath(index)
|
onClicked: Engine.setAddonsPath(index)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Button {
|
Button {
|
||||||
|
enabled: Engine.status == Engine.Ready && addonsReady
|
||||||
text: qsTr("Add directory")
|
text: qsTr("Add directory")
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
onClicked: {fileDialog.selector = -1; fileDialog.visible = true}
|
onClicked: {fileDialog.selector = -1; fileDialog.visible = true}
|
||||||
|
|||||||
Reference in New Issue
Block a user