From 923e590da1b6f9bc217810f3de502b0338384251 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 27 Mar 2020 23:32:46 -0700 Subject: [PATCH] Delay the spinner on the stream segue to prevent animation glitching on Windows --- app/gui/StreamSegue.qml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/gui/StreamSegue.qml b/app/gui/StreamSegue.qml index 6a1d084c..0fa62041 100644 --- a/app/gui/StreamSegue.qml +++ b/app/gui/StreamSegue.qml @@ -117,9 +117,22 @@ Item { session.sessionFinished.connect(sessionFinished) // Kick off the stream + spinnerTimer.start() streamLoader.active = true } + Timer { + id: spinnerTimer + + // Display the spinner appearance a bit to allow us to reach + // the code in Session.exec() that pumps the event loop. + // If we display it immediately, it will briefly hang in the + // middle of the animation on Windows, which looks very + // obviously broken. + interval: 100 + onTriggered: stageSpinner.running = true + } + Loader { id: streamLoader active: false @@ -150,6 +163,7 @@ Item { BusyIndicator { id: stageSpinner + running: false } Label {