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