also fix cancel button for auto-connects

This commit is contained in:
Michael Zanetti 2018-09-25 10:39:04 +02:00
parent cf13898ecb
commit d743d01c20

View File

@ -28,6 +28,8 @@ Page {
var page = pageStack.push(Qt.resolvedUrl("ConnectingPage.qml"))
page.cancel.connect(function() {
Engine.connection.disconnect()
pageStack.pop(root, StackView.Immediate);
pageStack.push(discoveryPage)
})
Engine.connection.connect(url)
}