From 8d9a60b64ce7b443f8eb9b63d5eccc3b1d818804 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Sun, 21 Mar 2021 23:58:54 +0100 Subject: [PATCH] Don't hide the splash early if we're autoconnecting --- nymea-app/ui/RootItem.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nymea-app/ui/RootItem.qml b/nymea-app/ui/RootItem.qml index 24821a5a..54c53bb1 100644 --- a/nymea-app/ui/RootItem.qml +++ b/nymea-app/ui/RootItem.qml @@ -184,9 +184,12 @@ Item { } else if (autoConnectHost.length > 0) { var host = nymeaDiscovery.nymeaHosts.createLanHost(app.systemName, autoConnectHost); engine.jsonRpcClient.connectToHost(host) + } else { + // Only hide the splash right away if we're not trying to connect to something + // If it's not hidden here it will be hidden in 3 seconds or when the connection is up, whichever comes first + PlatformHelper.hideSplashScreen(); } - PlatformHelper.hideSplashScreen(); pageStack.push(Qt.resolvedUrl("connection/ConnectPage.qml"), StackView.Immediate) }