diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2021-09-06 21:08:14 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-10-06 18:38:12 +0200 |
commit | 7fdad87222a963e57031132acce7c06f4b80e64d (patch) | |
tree | 6c93efc27ce892f56a4e5400c890f7bee8289ae5 /gui/main.qml | |
parent | 566389285f60a59c8dc1323f977ecf4e36e7f679 (diff) |
[ui] transient connecting state
Diffstat (limited to 'gui/main.qml')
-rw-r--r-- | gui/main.qml | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/gui/main.qml b/gui/main.qml index f847377..515330a 100644 --- a/gui/main.qml +++ b/gui/main.qml @@ -9,9 +9,9 @@ - [x] font: monserrat - [x] nested states - [x] splash init errors - - [ ] minimize/hide from systray - - [ ] gateway selector + - [.] gateway selector - [ ] bridges + - [ ] minimize/hide from systray - [ ] control actions from systray - [ ] add gateway to systray - [ ] donation dialog @@ -43,8 +43,13 @@ ApplicationWindow { property var ctx property var error: "" + + // TODO can move properties to some state sub-item to unclutter property bool isDonationService: false property bool showDonationReminder: false + property var locationsModel: [] + // TODO get from persistance + property var selectedGateway: "auto" property var icons: { "off": "qrc:/assets/icon/png/white/vpn_off.png", @@ -84,6 +89,9 @@ ApplicationWindow { console.debug(j) } ctx = JSON.parse(j) + if (ctx != undefined) { + locationsModel = Object.keys(ctx.locations) + } if (ctx.errors) { console.debug("errors, setting root.error") root.error = ctx.errors @@ -96,7 +104,7 @@ ApplicationWindow { if (ctx.donateDialog == 'true') { showDonationReminder = true; } - //gwSelector.model = Object.keys(ctx.locations) + // TODO check donation //if (needsDonate && !shownDonate) { // donate.visible = true; |