summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-10-13 21:22:05 +0200
committerkali kaneko (leap communications) <kali@leap.se>2020-10-23 23:21:59 +0200
commit78155298edd9d80a395928fdc72f152a158df959 (patch)
tree71264f19b0bf4243385857b30d55e09bce5c6542 /gui
parent9664ba2ddcdfe587355acd1d5b87f06a9849d8cb (diff)
[pkg] hide app window
Diffstat (limited to 'gui')
-rw-r--r--gui/qml/main.qml25
1 files changed, 16 insertions, 9 deletions
diff --git a/gui/qml/main.qml b/gui/qml/main.qml
index dcffcde..04592a5 100644
--- a/gui/qml/main.qml
+++ b/gui/qml/main.qml
@@ -89,20 +89,27 @@ ApplicationWindow {
Component.onCompleted: {
loginDone = false;
- /* stupid as it sounds, windows doesn't like to have the systray icon
- not being attached to an actual application window.
- We can still use this quirk, and can use the AppWindow with deferred
- Loaders as a placeholder for all the many dialogs, or to load
- a nice splash screen etc... */
-
console.debug("DEBUG: Pre-seeded providers:");
console.debug(providers.getJson());
allowEmptyPass = shouldAllowEmptyPass()
- app.visible = true;
- //show();
- //hide();
+ console.debug("DEBUG platform":, Qt.platform.os)
+
+ if ("osx" == Qt.platform.os || "linux" == Qt.platform.os ) {
+ app.visible = false;
+ }
+
+ if ("windows" == Qt.platform.os) {
+ /* FIXME stupid as it sounds, windows doesn't like to have the systray icon
+ not being attached to an actual application window??
+ We can still use this quirk, and can use the AppWindow with deferred
+ Loaders as a placeholder for all the many dialogs, or to load
+ a nice splash screen etc... */
+ app.visible = true;
+ app.show();
+ app.hide();
+ }
}
function toHuman(st) {