Unverified Commit 37a9772a authored by Kali Kaneko's avatar Kali Kaneko
Browse files

[ui] show window when preferences clicked

parent 0a42d4cc
Pipeline #62034 failed with stages
in 60 minutes and 57 seconds
Censorship Circumvention
================================================================================
This document contains some advice for using BitmaskVPN for censorship
circumvention.
This document contains some advice for using BitmaskVPN (or any of its
derivatives) for censorship circumvention.
Bootstrapping the connection
-----------------------------
......
......@@ -11,7 +11,7 @@ Rectangle {
Image {
source: parent.backgroundSrc;
visible: backgroundVisible;
visible: parent.backgroundVisible;
fillMode: Image.PreserveAspectCrop;
anchors.fill: parent;
opacity: 0.8;
......
......@@ -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 {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment