aboutsummaryrefslogtreecommitdiff
path: root/qml/SettingsPage.qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml/SettingsPage.qml')
-rw-r--r--qml/SettingsPage.qml20
1 files changed, 10 insertions, 10 deletions
diff --git a/qml/SettingsPage.qml b/qml/SettingsPage.qml
index e0cee5f..1e28917 100644
--- a/qml/SettingsPage.qml
+++ b/qml/SettingsPage.qml
@@ -130,33 +130,33 @@ Kirigami.ScrollablePage {
Switch {
text: "SOCKS5 enabled"
- checked: settingsPageRoot.context.getConfig("socks5_enabled") == "1"
- onToggled: settingsPageRoot.context.setConfig("socks5_enabled", checked ? "1" : "0")
+ checked: root.context.getConfig("socks5_enabled") == "1"
+ onToggled: root.context.setConfig("socks5_enabled", checked ? "1" : "0")
}
TextField {
Kirigami.FormData.label: "SOCKS5 host: "
- text: settingsPageRoot.context.getConfig("socks5_host")
- onEditingFinished: settingsPageRoot.context.setConfig("socks5_host", text)
+ text: root.context.getConfig("socks5_host")
+ onEditingFinished: root.context.setConfig("socks5_host", text)
}
TextField {
Kirigami.FormData.label: "SOCKS5 port: "
- text: settingsPageRoot.context.getConfig("socks5_port")
- onEditingFinished: settingsPageRoot.context.setConfig("socks5_port", text)
+ text: root.context.getConfig("socks5_port")
+ onEditingFinished: root.context.setConfig("socks5_port", text)
}
TextField {
Kirigami.FormData.label: "SOCKS5 username: "
- text: settingsPageRoot.context.getConfig("socks5_user")
- onEditingFinished: settingsPageRoot.context.setConfig("socks5_user", text)
+ text: root.context.getConfig("socks5_user")
+ onEditingFinished: root.context.setConfig("socks5_user", text)
}
TextField {
Kirigami.FormData.label: "SOCKS5 password: "
echoMode: TextInput.PasswordEchoOnEdit
- text: settingsPageRoot.context.getConfig("socks5_password")
- onEditingFinished: settingsPageRoot.context.setConfig("socks5_password", text)
+ text: root.context.getConfig("socks5_password")
+ onEditingFinished: root.context.setConfig("socks5_password", text)
}
}