summaryrefslogtreecommitdiff
path: root/gui/main.qml
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-09-06 21:08:14 +0200
committerkali kaneko (leap communications) <kali@leap.se>2021-11-23 21:51:01 +0100
commit8543125fa656ddc2c114072adfc27e4e7c461695 (patch)
tree176f90c03f64c2645932dbaf3d87f2ad22b61489 /gui/main.qml
parentb8e0fe3b5003d22043042110e8036f4383602545 (diff)
[ui] transient connecting state
Diffstat (limited to 'gui/main.qml')
-rw-r--r--gui/main.qml14
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;