From 8543125fa656ddc2c114072adfc27e4e7c461695 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Mon, 6 Sep 2021 21:08:14 +0200 Subject: [ui] transient connecting state --- gui/main.qml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'gui/main.qml') 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; -- cgit v1.2.3