Delay the spinner on the stream segue to prevent animation glitching on Windows
This commit is contained in:
parent
e56329d05a
commit
923e590da1
1 changed files with 14 additions and 0 deletions
|
|
@ -117,9 +117,22 @@ Item {
|
||||||
session.sessionFinished.connect(sessionFinished)
|
session.sessionFinished.connect(sessionFinished)
|
||||||
|
|
||||||
// Kick off the stream
|
// Kick off the stream
|
||||||
|
spinnerTimer.start()
|
||||||
streamLoader.active = true
|
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 {
|
Loader {
|
||||||
id: streamLoader
|
id: streamLoader
|
||||||
active: false
|
active: false
|
||||||
|
|
@ -150,6 +163,7 @@ Item {
|
||||||
|
|
||||||
BusyIndicator {
|
BusyIndicator {
|
||||||
id: stageSpinner
|
id: stageSpinner
|
||||||
|
running: false
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue