summaryrefslogtreecommitdiff
path: root/gui/qml/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'gui/qml/main.qml')
-rw-r--r--gui/qml/main.qml10
1 files changed, 8 insertions, 2 deletions
diff --git a/gui/qml/main.qml b/gui/qml/main.qml
index e166d65..fef68cf 100644
--- a/gui/qml/main.qml
+++ b/gui/qml/main.qml
@@ -303,7 +303,6 @@ ApplicationWindow {
}
function setGwSelection() {
-
if (!isManualLocation()) {
manualSelectionItem.checked = false
bar.currentIndex = 1
@@ -312,7 +311,6 @@ ApplicationWindow {
app.raise()
return
}
-
// last used manual selection
const location = ctx.currentLocation.toLowerCase()
const idx = gwSelector.model.indexOf(location)
@@ -320,6 +318,13 @@ ApplicationWindow {
backend.useLocation(location)
}
+ function showMainWindow() {
+ bar.currentIndex = 0
+ app.visible = true
+ app.show()
+ app.raise()
+ }
+
Component.onCompleted: {
Logic.debugInit()
loginDone = false
@@ -406,6 +411,7 @@ ApplicationWindow {
MenuItem {
text: qsTr("Preferences…")
visible: !hasMultipleGateways()
+ onTriggered: showMainWindow()
}
MenuSeparator {}