Commit 154d88b9 authored by Thomas BOUTROUE's avatar Thomas BOUTROUE

Better handling of splashscreen

(don't hide it before UI is fully loaded)
parent a6a5d490
......@@ -12,6 +12,7 @@
#include "Manager.h"
int main (int argc, char * argv []) {
//qputenv ("QML_DISABLE_DISK_CACHE", "1");
QGuiApplication app (argc, argv);
QQmlApplicationEngine engine (&app);
registerQtQmlTricksUiElements (&engine);
......
......@@ -48,6 +48,11 @@ Window {
active: false;
asynchronous: false;
anchors.fill: parent;
onStatusChanged: {
if (status === Loader.Ready) {
splash.visible = false;
}
}
}
Rectangle {
id: splash;
......@@ -86,9 +91,6 @@ Window {
repeat: false;
running: false;
interval: 10;
onTriggered: {
loader.active = true;
splash.visible = false;
}
onTriggered: { loader.active = true; }
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment