summaryrefslogtreecommitdiff
path: root/gui/qml/VpnState.qml
diff options
context:
space:
mode:
Diffstat (limited to 'gui/qml/VpnState.qml')
-rw-r--r--gui/qml/VpnState.qml48
1 files changed, 8 insertions, 40 deletions
diff --git a/gui/qml/VpnState.qml b/gui/qml/VpnState.qml
index 9ee4ed8..886868f 100644
--- a/gui/qml/VpnState.qml
+++ b/gui/qml/VpnState.qml
@@ -17,6 +17,10 @@ StateGroup {
icon.source: icons["off"]
}
PropertyChanges {
+ target: vpntoggle
+ checked: false
+ }
+ PropertyChanges {
target: statusItem
text: toHuman("off")
}
@@ -28,14 +32,6 @@ StateGroup {
target: mainCurrentGateway
text: ""
}
- PropertyChanges {
- target: mainOnBtn
- visible: true
- }
- PropertyChanges {
- target: mainOffBtn
- visible: false
- }
},
State {
name: "on"
@@ -45,6 +41,10 @@ StateGroup {
icon.source: icons["on"]
}
PropertyChanges {
+ target: vpntoggle
+ checked: true
+ }
+ PropertyChanges {
target: statusItem
text: toHumanWithLocation("on")
}
@@ -56,14 +56,6 @@ StateGroup {
target: mainCurrentGateway
text: qsTr("Connected to ") + ctx.currentLocation
}
- PropertyChanges {
- target: mainOnBtn
- visible: false
- }
- PropertyChanges {
- target: mainOffBtn
- visible: true
- }
},
State {
name: "starting"
@@ -84,14 +76,6 @@ StateGroup {
target: mainCurrentGateway
text: ""
}
- PropertyChanges {
- target: mainOnBtn
- visible: false
- }
- PropertyChanges {
- target: mainOffBtn
- visible: true
- }
},
State {
name: "stopping"
@@ -112,14 +96,6 @@ StateGroup {
target: mainCurrentGateway
text: ""
}
- PropertyChanges {
- target: mainOnBtn
- visible: true
- }
- PropertyChanges {
- target: mainOffBtn
- visible: false
- }
},
State {
name: "failed"
@@ -140,14 +116,6 @@ StateGroup {
target: mainCurrentGateway
text: ""
}
- PropertyChanges {
- target: mainOnBtn
- visible: true
- }
- PropertyChanges {
- target: mainOffBtn
- visible: false
- }
}
]
}