From dad35c2cbbb3897593d682d7c250a654aa41489b Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Fri, 5 Jun 2020 13:06:39 +0200 Subject: [bug] systray pain and vodoo Signed-off-by: kali kaneko (leap communications) --- gui/main.cpp | 6 +++--- gui/qml/main.qml | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'gui') 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 +#include #include #include #include @@ -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(); } -- cgit v1.2.3