From a81bf938fe2b9409d1fa0175cc5f20635bb16127 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Wed, 24 Nov 2021 20:40:18 +0100 Subject: [feat] enable udp only if really announced --- gui/components/Preferences.qml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gui/components/Preferences.qml') 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 + } } } -- cgit v1.2.3