1
0
Files
electrum/electrum/gui/qml/components/ServerConnectWizard.qml
SomberNight 9ef6d6a56f qml: rm QEConfig.serverString. Network.server is sufficient
If there is no network object, it's ok not to be able to customise it.
2023-03-30 00:58:58 +00:00

35 lines
780 B
QML

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']
}
}
Component.onCompleted: {
var view = wiz.start_wizard()
_loadNextComponent(view)
}
}