From 7fdad87222a963e57031132acce7c06f4b80e64d Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Mon, 6 Sep 2021 21:08:14 +0200 Subject: [ui] transient connecting state --- gui/components/Splash.qml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'gui/components/Splash.qml') diff --git a/gui/components/Splash.qml b/gui/components/Splash.qml index 6bdd3ab..15acf48 100644 --- a/gui/components/Splash.qml +++ b/gui/components/Splash.qml @@ -4,7 +4,8 @@ import QtGraphicalEffects 1.0 Page { id: splash - property int timeoutInterval: 1600 + property int timeoutInterval: 200 + //property int timeoutInterval: 1600 property alias errors: splashErrorBox Column { @@ -40,7 +41,7 @@ Page { function delay(delayTime, cb) { splashTimer.interval = delayTime - splashTimer.repeat = false + splashTimer.repeat = true splashTimer.triggered.connect(cb) splashTimer.start() } @@ -50,9 +51,13 @@ Page { return } if (ctx && ctx.isReady) { + splashTimer.stop() loader.source = "MainView.qml" } else { - delay(100, loadMainViewWhenReady) + if (!splashTimer.running) { + console.debug('delay...') + delay(500, loadMainViewWhenReady) + } } } @@ -65,7 +70,5 @@ Page { } } - Component.onCompleted: { - - } + Component.onCompleted: {} } -- cgit v1.2.3