aboutsummaryrefslogtreecommitdiff
path: root/qml/ConfigurePage.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/ConfigurePage.qml
parent138d8546f65733ce62f181c2a05c692151695753 (diff)
downloadkdeltachat-40092aa096bac7e279eb5a4cc97758bac484236c.tar.gz
kdeltachat-40092aa096bac7e279eb5a4cc97758bac484236c.zip
Add SOCKS5 settings
Diffstat (limited to 'qml/ConfigurePage.qml')
-rw-r--r--qml/ConfigurePage.qml27
1 files changed, 27 insertions, 0 deletions
diff --git a/qml/ConfigurePage.qml b/qml/ConfigurePage.qml
index 9bdd4ed..1cddb3f 100644
--- a/qml/ConfigurePage.qml
+++ b/qml/ConfigurePage.qml
@@ -118,6 +118,28 @@ Kirigami.ScrollablePage {
textRole: "text"
}
+ Switch {
+ id: socks5Enabled
+ text: "SOCKS5 enabled"
+ }
+ TextField {
+ id: socks5Host
+ Kirigami.FormData.label: "SOCKS5 host: "
+ }
+ TextField {
+ id: socks5Port
+ Kirigami.FormData.label: "SOCKS5 port: "
+ }
+ TextField {
+ id: socks5Username
+ Kirigami.FormData.label: "SOCKS5 username: "
+ }
+ TextField {
+ id: socks5Password
+ Kirigami.FormData.label: "Password: "
+ echoMode: TextInput.PasswordEchoOnEdit
+ }
+
ProgressBar {
id: progressBar
value: 0.0
@@ -141,6 +163,11 @@ Kirigami.ScrollablePage {
let certificate_checks = certificateChecks.model.get(certificateChecks.currentIndex).value;
root.context.setConfig("imap_certificate_checks", certificate_checks)
root.context.setConfig("smtp_certificate_checks", certificate_checks)
+ root.context.setConfig("socks5_enabled", socks5Enabled.checked ? "1" : "0")
+ root.context.setConfig("socks5_host", socks5Host.text)
+ root.context.setConfig("socks5_port", socks5Port.text)
+ root.context.setConfig("socks5_user", socks5Username.text)
+ root.context.setConfig("socks5_password", socks5Password.text)
root.context.configure()
}
}