disable the checkbox by default, so that if a user selects Enable Proxy in the advanced network settings, and then just clicks next with the proxy checkbox set, doesn't end up with a invalid proxy configuration which doesn't connect to the server and has to be fixed manually.
26 lines
438 B
QML
26 lines
438 B
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import QtQuick.Controls
|
|
|
|
import "../controls"
|
|
|
|
WizardComponent {
|
|
valid: true
|
|
title: qsTr('Proxy')
|
|
|
|
function apply() {
|
|
wizard_data['proxy'] = pc.toProxyDict()
|
|
}
|
|
|
|
ColumnLayout {
|
|
width: parent.width
|
|
spacing: constants.paddingLarge
|
|
|
|
ProxyConfig {
|
|
id: pc
|
|
Layout.fillWidth: true
|
|
proxy_enabled: false
|
|
}
|
|
}
|
|
}
|