From 15f2efc9aa77893d5300d198dd3b5c42549018e8 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Fri, 27 Aug 2021 19:45:41 +0200 Subject: [ui] refactor ui --- gui/qml/VpnState.qml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'gui/qml/VpnState.qml') 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 -- cgit v1.2.3