From cae08421ac569ce773cc619ff8042ebe33700ff9 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Sun, 3 Oct 2021 22:46:41 +0200 Subject: [ui] systray actions --- gui/main.qml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'gui/main.qml') 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) -- cgit v1.2.3