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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user