From 75c36ca186ae52738a8734e51c53933e0d9dcaae Mon Sep 17 00:00:00 2001
From: jkito <belter@riseup.net>
Date: Sat, 27 Jul 2024 21:06:58 +0530
Subject: [PATCH] gui: show bridge icon when transport is kcp

---
 gui/components/Footer.qml    | 6 ++++--
 gui/components/Locations.qml | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/gui/components/Footer.qml b/gui/components/Footer.qml
index a72953e4..d534f96a 100644
--- a/gui/components/Footer.qml
+++ b/gui/components/Footer.qml
@@ -224,8 +224,10 @@ ToolBar {
     function isBridgeSelected() {
         if (ctx && ctx.transport == "obfs4") {
             return true;
-        } else {
-            return false;
         }
+        if (ctx && ctx.transport == "kcp") {
+            return true;
+        }
+        return false;
     }
 }
diff --git a/gui/components/Locations.qml b/gui/components/Locations.qml
index 1c887d5d..2a188738 100644
--- a/gui/components/Locations.qml
+++ b/gui/components/Locations.qml
@@ -314,9 +314,11 @@ ThemedPage {
     function isBridgeSelected() {
         if (ctx && ctx.transport == "obfs4") {
             return true
-        } else {
-            return false
         }
+        if (ctx && ctx.transport == "kcp") {
+            return true
+        }
+        return false
     }
 
     function getManualAnchor() {
-- 
GitLab