summaryrefslogtreecommitdiff
path: root/gui/components/Splash.qml
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-08-31 21:59:35 +0200
committerkali kaneko (leap communications) <kali@leap.se>2021-11-23 21:50:59 +0100
commit815c26850266eba2e4e5d02509487452624b1c64 (patch)
tree48aeca1a7e52003127e6924ef71cf539a034b903 /gui/components/Splash.qml
parentcd1d46a26b923260b6c87cc93a0723b8166c609e (diff)
[ui] fonts + bugfixing
Diffstat (limited to 'gui/components/Splash.qml')
-rw-r--r--gui/components/Splash.qml15
1 files changed, 11 insertions, 4 deletions
diff --git a/gui/components/Splash.qml b/gui/components/Splash.qml
index b494494..6bdd3ab 100644
--- a/gui/components/Splash.qml
+++ b/gui/components/Splash.qml
@@ -5,6 +5,7 @@ import QtGraphicalEffects 1.0
Page {
id: splash
property int timeoutInterval: 1600
+ property alias errors: splashErrorBox
Column {
width: parent.width * 0.8
@@ -24,7 +25,13 @@ Page {
fillMode: Image.PreserveAspectFit
}
- Spinner {}
+ Spinner {
+ id: splashSpinner
+ }
+
+ InitErrors {
+ id: splashErrorBox
+ }
}
Timer {
@@ -39,10 +46,10 @@ Page {
}
function loadMainViewWhenReady() {
- console.debug("ready?")
+ if (root.error != "") {
+ return
+ }
if (ctx && ctx.isReady) {
- console.debug("ready?", ctx.isReady)
- // FIXME check errors == None
loader.source = "MainView.qml"
} else {
delay(100, loadMainViewWhenReady)