diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2021-09-24 20:58:30 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-11-23 21:51:08 +0100 |
commit | 0efd19b935452a7b0b5561f9cba56b01ba7c627f (patch) | |
tree | f7ca08f78a76d64b0be83eef789ed6a935ca31d1 /gui/components/Preferences.qml | |
parent | be36ce80cac534afda4393fc6bd904d489b63361 (diff) |
[feat] persist obfs4 & udp prefs
Diffstat (limited to 'gui/components/Preferences.qml')
-rw-r--r-- | gui/components/Preferences.qml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gui/components/Preferences.qml b/gui/components/Preferences.qml index 5c708a3..3620471 100644 --- a/gui/components/Preferences.qml +++ b/gui/components/Preferences.qml @@ -67,6 +67,9 @@ ThemedPage { text: qsTr("UDP") enabled: false checked: false + onClicked: { + doUseUDP(checked) + } } } @@ -131,6 +134,16 @@ ThemedPage { } } + function doUseUDP(value) { + if (value == true) { + console.debug("use udp") + backend.setUDP(true) + } else { + console.debug("use tcp") + backend.setUDP(false) + } + } + Component.onCompleted: { if (ctx && ctx.transport == "obfs4") { useBridgesCheckBox.checked = true |