diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2021-11-24 20:35:09 +0100 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-11-24 20:35:23 +0100 |
commit | a234a8ef5bf8564221f615d0010a810e501905bb (patch) | |
tree | 100c2d12d0ac1a9c08ec9c3ce9fcc85bf55294f7 /gui/qml/VpnState.qml | |
parent | 4e92b1103dc0ea1eba07f2568afd1c250aee31d1 (diff) |
[ui] remove old qml folder
Diffstat (limited to 'gui/qml/VpnState.qml')
-rw-r--r-- | gui/qml/VpnState.qml | 193 |
1 files changed, 0 insertions, 193 deletions
diff --git a/gui/qml/VpnState.qml b/gui/qml/VpnState.qml deleted file mode 100644 index 31910c7..0000000 --- a/gui/qml/VpnState.qml +++ /dev/null @@ -1,193 +0,0 @@ -import QtQuick 2.0 -import QtQuick.Controls 2.12 - -import "logic.js" as Logic - -StateGroup { - - state: ctx ? ctx.status : "" - - states: [ - State { - name: "initializing" - }, - State { - name: "off" - StateChangeScript { - script: Logic.setStatus("off") - } - PropertyChanges { - target: systray - tooltip: Logic.toHuman("off") - icon.source: icons["off"] - } - PropertyChanges { - target: vpntoggle - checked: false - checkable: true - } - PropertyChanges { - target: statusItem - text: Logic.toHuman("off") - } - PropertyChanges { - target: autoSelectionItem - text: qsTr("Recommended") - } - PropertyChanges { - target: mainStatus - text: Logic.toHuman("off") - } - PropertyChanges { - target: mainCurrentGateway - text: "" - } - }, - State { - name: "on" - StateChangeScript { - script: { - Logic.setNeedsReconnect(false) - brReconnect = false - - if (needsDonate && !shownDonate) { - donate.visible = true - shownDonate = true - backend.donateSeen() - } - } - } - PropertyChanges { - target: systray - tooltip: Logic.toHuman("on") - icon.source: icons["on"] - } - PropertyChanges { - target: vpntoggle - checked: true - checkable: true - } - PropertyChanges { - target: statusItem - text: Logic.toHuman("on") - } - PropertyChanges { - target: autoSelectionItem - text: { - if (autoSelectionButton.checked) { - //: %1 -> location to which the client is connected to - qsTr("Recommended (%1)").arg(locationStr()) - } else { - qsTr("Recommended") - } - } - } - PropertyChanges { - target: mainStatus - text: Logic.toHuman("on") - } - PropertyChanges { - target: mainCurrentGateway - //: %1 -> location to which the client is connected to - text: qsTr("Connected to %1").arg(locationStr()) - } - }, - State { - name: "starting" - PropertyChanges { - target: systray - tooltip: Logic.toHuman("connecting") - icon.source: icons["wait"] - } - PropertyChanges { - target: statusItem - text: Logic.toHuman("connecting") - } - PropertyChanges { - target: autoSelectionItem - text: { - if (autoSelectionButton.checked) { - //: %1 -> location to which the client is connected to - qsTr("Recommended (%1)").arg(locationStr()) - } else { - //: Clickable item to switch to the recommended location - qsTr("Recommended") - } - } - } - PropertyChanges { - target: mainStatus - text: qsTr("Connecting…") - } - PropertyChanges { - target: mainCurrentGateway - text: "" - } - PropertyChanges { - target: vpntoggle - checked: true - checkable: false - } - }, - State { - name: "stopping" - PropertyChanges { - target: systray - tooltip: Logic.toHuman("stopping") - icon.source: icons["wait"] - } - PropertyChanges { - target: statusItem - text: Logic.toHuman("stopping") - } - PropertyChanges { - target: autoSelectionItem - //: Clickable item to switch to the recommended location - text: qsTr("Recommended") - } - PropertyChanges { - target: mainStatus - text: Logic.toHuman("stopping") - } - PropertyChanges { - target: mainCurrentGateway - text: "" - } - PropertyChanges { - target: vpntoggle - checked: false - checkable: false - } - }, - State { - name: "failed" - PropertyChanges { - target: systray - tooltip: Logic.toHuman("failed") - icon.source: icons["wait"] - } - PropertyChanges { - target: statusItem - text: Logic.toHuman("failed") - } - PropertyChanges { - target: autoSelectionItem - //: Clickable item to swicth to the recommended location - text: qsTr("Recommended") - } - PropertyChanges { - target: mainStatus - text: Logic.toHuman("failed") - } - PropertyChanges { - target: mainCurrentGateway - text: "" - } - PropertyChanges { - target: vpntoggle - checked: false - checkable: true - } - } - ] -} |