1
0

rewrite server connect wizard to new wizard style

'last' property on WizardComponents is now queried from UI, not from the wizard.
This allows the content of the WizardComponent itself to be taken into account.
This commit is contained in:
Sander van Grieken
2022-10-04 19:47:29 +02:00
parent 6ea3a16cc8
commit 15e2ed4f58
9 changed files with 76 additions and 37 deletions

View File

@@ -11,6 +11,8 @@ Wizard {
enter: null // disable transition
wiz: Daemon.serverConnectWizard
onAccepted: {
var proxy = wizard_data['proxy']
if (proxy && proxy['enabled'] == true) {
@@ -25,29 +27,7 @@ Wizard {
}
Component.onCompleted: {
var start = _loadNextComponent(autoconnect)
start.next.connect(function() {autoconnectDone()})
var view = wiz.start_wizard()
_loadNextComponent(view)
}
function autoconnectDone() {
var page = _loadNextComponent(proxyconfig, wizard_data)
page.next.connect(function() {proxyconfigDone()})
}
function proxyconfigDone() {
var page = _loadNextComponent(serverconfig, wizard_data)
}
property Component autoconnect: Component {
WCAutoConnect {}
}
property Component proxyconfig: Component {
WCProxyConfig {}
}
property Component serverconfig: Component {
WCServerConfig {}
}
}