diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-06-05 13:06:39 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2020-06-12 20:02:56 +0200 |
commit | dad35c2cbbb3897593d682d7c250a654aa41489b (patch) | |
tree | e7da430cbb057c88337a9c554f53098c50931c2d | |
parent | 121016fd03ece09642974123020bf4698886c614 (diff) |
[bug] systray pain and vodoo
Signed-off-by: kali kaneko (leap communications) <kali@leap.se>
-rw-r--r-- | gui/main.cpp | 6 | ||||
-rw-r--r-- | gui/qml/main.qml | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/gui/main.cpp b/gui/main.cpp index 3e96761..e6e9bb8 100644 --- a/gui/main.cpp +++ b/gui/main.cpp @@ -1,4 +1,4 @@ -#include <QGuiApplication> +#include <QApplication> #include <QQmlApplicationEngine> #include <QQuickWindow> #include <QTimer> @@ -71,8 +71,8 @@ int main(int argc, char **argv) { exit(0); } - QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); - QGuiApplication app(argc, argv); + QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); + QApplication app(argc, argv); app.setQuitOnLastWindowClosed(false); QQmlApplicationEngine engine; QQmlContext *ctx = engine.rootContext(); diff --git a/gui/qml/main.qml b/gui/qml/main.qml index b601f40..daf8150 100644 --- a/gui/qml/main.qml +++ b/gui/qml/main.qml @@ -24,7 +24,9 @@ ApplicationWindow { 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; + show(); hide(); } @@ -65,6 +67,7 @@ ApplicationWindow { icon.source = icons["off"] tooltip = qsTr("Checking status...") console.debug("systray init completed") + hide(); show(); } |