fix order of connection so that the connect page doesn't remain stale on the stack
This commit is contained in:
parent
0249833848
commit
2b5af4f2f8
@ -25,11 +25,11 @@ Page {
|
||||
}
|
||||
|
||||
function connectToHost(url) {
|
||||
Engine.connection.connect(url)
|
||||
var page = pageStack.push(Qt.resolvedUrl("ConnectingPage.qml"))
|
||||
page.cancel.connect(function() {
|
||||
Engine.connection.disconnect()
|
||||
})
|
||||
Engine.connection.connect(url)
|
||||
}
|
||||
|
||||
NymeaDiscovery {
|
||||
|
||||
Reference in New Issue
Block a user