summaryrefslogtreecommitdiff
path: root/gui/qml/BridgesItem.qml
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-08-27 19:45:41 +0200
committerkali kaneko (leap communications) <kali@leap.se>2021-11-23 21:50:58 +0100
commitcd1d46a26b923260b6c87cc93a0723b8166c609e (patch)
tree81d0fafeaeda6f5d72ec03f589cf8560cea32ed8 /gui/qml/BridgesItem.qml
parent76585f828a36c08614df84f43d64e20fb0e7a425 (diff)
[ui] refactor ui
Diffstat (limited to 'gui/qml/BridgesItem.qml')
-rw-r--r--gui/qml/BridgesItem.qml16
1 files changed, 8 insertions, 8 deletions
diff --git a/gui/qml/BridgesItem.qml b/gui/qml/BridgesItem.qml
index 1343403..f7ccb0f 100644
--- a/gui/qml/BridgesItem.qml
+++ b/gui/qml/BridgesItem.qml
@@ -26,15 +26,15 @@ Item {
anchors.horizontalCenter: parent.horizontalCenter
onClicked: {
if (checked) {
- Logic.setNeedsReconnect(true);
- bridgeReconnect.visible = true;
- app.useBridges(true);
+ Logic.setNeedsReconnect(true)
+ bridgeReconnect.visible = true
+ app.useBridges(true)
} else {
// This would also need a "needs reconnect" for de-selecting bridges the next time.
// better to wait and see the new connection widgets though
- Logic.setNeedsReconnect(false);
- bridgeReconnect.visible = false;
- app.useBridges(false);
+ Logic.setNeedsReconnect(false)
+ bridgeReconnect.visible = false
+ app.useBridges(false)
}
}
}
@@ -45,7 +45,7 @@ Item {
color: "grey"
text: qsTr("Select a bridge only if you know that you need it to evade censorship in your country or local network.")
anchors.horizontalCenter: parent.horizontalCenter
- wrapMode: Text.WordWrap
+ wrapMode: Text.WordWrap
visible: !bridgeReconnect.visible
}
@@ -56,7 +56,7 @@ Item {
color: "red"
text: qsTr("An obfs4 bridge will be used the next time you connect to the VPN.")
anchors.horizontalCenter: parent.horizontalCenter
- wrapMode: Text.WordWrap
+ wrapMode: Text.WordWrap
visible: false
}
}