summaryrefslogtreecommitdiff
path: root/gui/main.qml
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-10-03 22:46:41 +0200
committerkali kaneko (leap communications) <kali@leap.se>2021-11-23 21:51:12 +0100
commitcae08421ac569ce773cc619ff8042ebe33700ff9 (patch)
tree2002a7900150e400ed27abadcfdb3f569bab872c /gui/main.qml
parent79d25833bfd261c36d954cf57845e5a416aaf849 (diff)
[ui] systray actions
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)