summaryrefslogtreecommitdiff
path: root/gui/components
diff options
context:
space:
mode:
Diffstat (limited to 'gui/components')
-rw-r--r--gui/components/Preferences.qml13
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