diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2021-09-06 21:08:14 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-10-06 18:38:12 +0200 |
commit | 7fdad87222a963e57031132acce7c06f4b80e64d (patch) | |
tree | 6c93efc27ce892f56a4e5400c890f7bee8289ae5 /gui/components/Splash.qml | |
parent | 566389285f60a59c8dc1323f977ecf4e36e7f679 (diff) |
[ui] transient connecting state
Diffstat (limited to 'gui/components/Splash.qml')
-rw-r--r-- | gui/components/Splash.qml | 15 |
1 files changed, 9 insertions, 6 deletions
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: {} } |