summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui/main.cpp6
-rw-r--r--gui/qml/main.qml3
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();
}