1
0

qml: add busy property and guards around swaphelper

This commit is contained in:
Sander van Grieken
2023-04-06 10:11:31 +02:00
parent e02ca6b2d8
commit 5d350184a4
2 changed files with 23 additions and 1 deletions

View File

@@ -242,7 +242,7 @@ ElDialog {
Layout.fillWidth: true
text: qsTr('Ok')
icon.source: Qt.resolvedUrl('../../icons/confirmed.png')
enabled: swaphelper.valid
enabled: swaphelper.valid && !swaphelper.busy
onClicked: {
console.log('Swap triggered from dialog ' + this + ' using swaphelper ' + swaphelper)
swaphelper.executeSwap()