summaryrefslogtreecommitdiff
path: root/gui/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'gui/main.qml')
-rw-r--r--gui/main.qml13
1 files changed, 11 insertions, 2 deletions
diff --git a/gui/main.qml b/gui/main.qml
index 1c56925..c063739 100644
--- a/gui/main.qml
+++ b/gui/main.qml
@@ -3,8 +3,6 @@
/*
TODO (ui rewrite)
See https://0xacab.org/leap/bitmask-vpn/-/issues/523
- - [x] udp support
- - [ ] minimize/hide from systray
- [ ] control actions from systray
- [ ] add gateway to systray
*/
@@ -144,6 +142,17 @@ ApplicationWindow {
return Array.from(arr, (k,_) => k.key);
}
+ function bringToFront() {
+ // FIXME does not work properly, at least on linux
+ if (visibility == 3) {
+ showNormal()
+ } else {
+ show()
+ }
+ raise()
+ requestActivate()
+ }
+
onSceneGraphError: function (error, msg) {
console.debug("ERROR while initializing scene")
console.debug(msg)