1
0

qml: remove SwapProgressDialog, introduce qeswaphelper.state and enable dialog elements

depending on qeswaphelper.state

TODO: we can now retrieve the pairs from the service asynchronously, which should eliminate
the startup delay when showing the SwapDialog
This commit is contained in:
Sander van Grieken
2023-04-14 14:32:23 +02:00
parent f77ff2723c
commit 3cab3b86b4
4 changed files with 52 additions and 166 deletions

View File

@@ -382,22 +382,10 @@ ApplicationWindow
var dialog = app.messageDialog.createObject(app, { text: message })
dialog.open()
}
onSwapStarted: {
var progressdialog = swapProgressDialog.createObject(app, { swaphelper: _swaphelper })
progressdialog.open()
}
}
}
}
Component {
id: swapProgressDialog
SwapProgressDialog {
onClosed: destroy()
}
}
NotificationPopup {
id: notificationPopup
width: parent.width