diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2021-08-27 19:45:41 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-11-23 21:50:58 +0100 |
commit | cd1d46a26b923260b6c87cc93a0723b8166c609e (patch) | |
tree | 81d0fafeaeda6f5d72ec03f589cf8560cea32ed8 /gui/qml/VpnState.qml | |
parent | 76585f828a36c08614df84f43d64e20fb0e7a425 (diff) |
[ui] refactor ui
Diffstat (limited to 'gui/qml/VpnState.qml')
-rw-r--r-- | gui/qml/VpnState.qml | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/gui/qml/VpnState.qml b/gui/qml/VpnState.qml index a4bb779..31910c7 100644 --- a/gui/qml/VpnState.qml +++ b/gui/qml/VpnState.qml @@ -14,7 +14,7 @@ StateGroup { State { name: "off" StateChangeScript { - script: Logic.setStatus("off"); + script: Logic.setStatus("off") } PropertyChanges { target: systray @@ -47,16 +47,15 @@ StateGroup { name: "on" StateChangeScript { script: { - Logic.setNeedsReconnect(false); - brReconnect = false; + Logic.setNeedsReconnect(false) + brReconnect = false if (needsDonate && !shownDonate) { - donate.visible = true; - shownDonate = true; - backend.donateSeen(); + donate.visible = true + shownDonate = true + backend.donateSeen() } } - } PropertyChanges { target: systray |