summaryrefslogtreecommitdiff
path: root/gui/main.qml
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-11-30 23:09:50 +0100
committerkali kaneko (leap communications) <kali@leap.se>2021-11-30 23:09:50 +0100
commit58b15c89c7d4504730278e22b1a77684c2e9e83b (patch)
treefbd2ff76322cf0d8ec3b724c9115f4b68dd028ba /gui/main.qml
parentf08898257dbc46134520ff4cd68308240543325e (diff)
[bug] avoid inconsistent statesosx-fonts
Diffstat (limited to 'gui/main.qml')
-rw-r--r--gui/main.qml13
1 files changed, 13 insertions, 0 deletions
diff --git a/gui/main.qml b/gui/main.qml
index 116aba3..1424cc6 100644
--- a/gui/main.qml
+++ b/gui/main.qml
@@ -111,6 +111,9 @@ ApplicationWindow {
if (ctx.donateDialog == 'true') {
showDonationReminder = true
}
+ if (isAutoLocation()) {
+ root.selectedGateway = "auto"
+ }
// TODO check donation
//if (needsDonate && !shownDonate) {
@@ -149,6 +152,16 @@ ApplicationWindow {
return Array.from(arr, (k,_) => k.key);
}
+ function isAutoLocation() {
+ // FIXME there's something weird going on with newyork location...
+ // it gets marked as auto, which from europe is a bug.
+ let best = ctx.locationLabels[ctx.bestLocation]
+ if (best == undefined) {
+ return false
+ }
+ return (best[0] == ctx.currentLocation)
+ }
+
function bringToFront() {
// FIXME does not work properly, at least on linux
if (visibility == 3) {