Skip to content
Snippets Groups Projects
Unverified Commit dad35c2c authored by Kali Kaneko's avatar Kali Kaneko
Browse files

[bug] systray pain and vodoo

parent 121016fd
No related branches found
No related tags found
No related merge requests found
#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();
......
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment