You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
836 B
35 lines
836 B
import QtQuick 2.6 |
|
import QtQuick.Layouts 1.0 |
|
import QtQuick.Controls 2.3 |
|
|
|
import "wizard" |
|
|
|
Wizard { |
|
id: serverconnectwizard |
|
|
|
wizardTitle: qsTr('Network configuration') |
|
|
|
enter: null // disable transition |
|
|
|
wiz: Daemon.serverConnectWizard |
|
finishButtonText: qsTr('Next') |
|
|
|
onAccepted: { |
|
var proxy = wizard_data['proxy'] |
|
if (proxy && proxy['enabled'] == true) { |
|
Network.proxy = proxy |
|
} else { |
|
Network.proxy = {'enabled': false} |
|
} |
|
Config.autoConnect = wizard_data['autoconnect'] |
|
if (!wizard_data['autoconnect']) { |
|
Network.server = wizard_data['server'] |
|
Config.serverString = wizard_data['server'] |
|
} |
|
} |
|
|
|
Component.onCompleted: { |
|
var view = wiz.start_wizard() |
|
_loadNextComponent(view) |
|
} |
|
}
|
|
|