summaryrefslogtreecommitdiff
path: root/gui/components
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-11-24 20:40:18 +0100
committerkali kaneko (leap communications) <kali@leap.se>2021-11-24 21:16:01 +0100
commita81bf938fe2b9409d1fa0175cc5f20635bb16127 (patch)
treebb5b86654b687d31fe880a8996674272cf1e4fa8 /gui/components
parenta234a8ef5bf8564221f615d0010a810e501905bb (diff)
[feat] enable udp only if really announced
Diffstat (limited to 'gui/components')
-rw-r--r--gui/components/Preferences.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/gui/components/Preferences.qml b/gui/components/Preferences.qml
index 106af7a..f205358 100644
--- a/gui/components/Preferences.qml
+++ b/gui/components/Preferences.qml
@@ -5,10 +5,6 @@ import QtQuick.Controls.Material 2.1
import "../themes/themes.js" as Theme
-// TODO
-// [ ] disable UDP if provider doesn't support it
-// [ ] disable UDP if the platform doesn't support it
-
ThemedPage {
title: qsTr("Preferences")
@@ -116,7 +112,7 @@ ThemedPage {
}
Label {
- text: qsTr("UDP can make the VPN faster")
+ text: qsTr("UDP can make the VPN faster, but it might be blocked on certain networks")
width: parent.width
color: "gray"
visible: true
@@ -124,6 +120,7 @@ ThemedPage {
font.pixelSize: Theme.fontSize - 3
Layout.leftMargin: 10
Layout.rightMargin: 10
+ Layout.preferredWidth: 240
}
MaterialCheckBox {
@@ -232,5 +229,8 @@ ThemedPage {
if (ctx && ctx.udp == "true") {
useUDP.checked = true
}
+ if (ctx && ctx.offersUdp == "false") {
+ useUDP.enabled = false
+ }
}
}