aboutsummaryrefslogtreecommitdiff
path: root/qml/SettingsPage.qml
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-09-10 22:56:04 +0000
committerlink2xt <link2xt@testrun.org>2021-09-10 22:56:04 +0000
commit40092aa096bac7e279eb5a4cc97758bac484236c (patch)
treeff73a99eae348c50f7e34bfedb2edec422813019 /qml/SettingsPage.qml
parent138d8546f65733ce62f181c2a05c692151695753 (diff)
downloadkdeltachat-40092aa096bac7e279eb5a4cc97758bac484236c.tar.gz
kdeltachat-40092aa096bac7e279eb5a4cc97758bac484236c.zip
Add SOCKS5 settings
Diffstat (limited to 'qml/SettingsPage.qml')
-rw-r--r--qml/SettingsPage.qml31
1 files changed, 31 insertions, 0 deletions
diff --git a/qml/SettingsPage.qml b/qml/SettingsPage.qml
index b16225f..c171b53 100644
--- a/qml/SettingsPage.qml
+++ b/qml/SettingsPage.qml
@@ -90,5 +90,36 @@ Kirigami.ScrollablePage {
currentIndex: root.context.getConfig("show_emails")
onActivated: root.context.setConfig("show_emails", currentIndex)
}
+
+ Switch {
+ text: "SOCKS5 enabled"
+ checked: settingsPageRoot.context.getConfig("socks5_enabled") == "1"
+ onToggled: settingsPageRoot.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)
+ }
+
+ TextField {
+ Kirigami.FormData.label: "SOCKS5 port: "
+ text: settingsPageRoot.context.getConfig("socks5_port")
+ onEditingFinished: settingsPageRoot.context.setConfig("socks5_port", text)
+ }
+
+ TextField {
+ Kirigami.FormData.label: "SOCKS5 username: "
+ text: settingsPageRoot.context.getConfig("socks5_user")
+ onEditingFinished: settingsPageRoot.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)
+ }
}
}