mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-15 21:22:40 +00:00
Revert "Delay Session::exec() for 250 ms to allow the StackView transition to complete" due to regressing spinner performance on Windows and Linux
This reverts commit b8ffb6e53d.
This commit is contained in:
+8
-22
@@ -57,26 +57,6 @@ Item {
|
|||||||
toast.visible = true
|
toast.visible = true
|
||||||
}
|
}
|
||||||
|
|
||||||
// This timer delay allows the transition
|
|
||||||
// to this StreamSegue to complete before doing
|
|
||||||
// long operations in Session::exec(). It would
|
|
||||||
// be nice if we could find a way to avoid having
|
|
||||||
// to do this though.
|
|
||||||
Timer {
|
|
||||||
id: delayedStartTimer
|
|
||||||
interval: 250
|
|
||||||
onTriggered: {
|
|
||||||
// Run the streaming session to completion
|
|
||||||
session.exec(Screen.virtualX, Screen.virtualY)
|
|
||||||
|
|
||||||
// Show the Qt window again after streaming
|
|
||||||
window.visible = true
|
|
||||||
|
|
||||||
// Exit this view
|
|
||||||
stackView.pop()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
onVisibleChanged: {
|
onVisibleChanged: {
|
||||||
if (visible) {
|
if (visible) {
|
||||||
// Hide the toolbar before we start loading
|
// Hide the toolbar before we start loading
|
||||||
@@ -89,8 +69,14 @@ Item {
|
|||||||
session.displayLaunchError.connect(displayLaunchError)
|
session.displayLaunchError.connect(displayLaunchError)
|
||||||
session.displayLaunchWarning.connect(displayLaunchWarning)
|
session.displayLaunchWarning.connect(displayLaunchWarning)
|
||||||
|
|
||||||
// Kick off the delayed start
|
// Run the streaming session to completion
|
||||||
delayedStartTimer.running = true
|
session.exec(Screen.virtualX, Screen.virtualY)
|
||||||
|
|
||||||
|
// Show the Qt window again after streaming
|
||||||
|
window.visible = true
|
||||||
|
|
||||||
|
// Exit this view
|
||||||
|
stackView.pop()
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Show the toolbar again when we become hidden
|
// Show the toolbar again when we become hidden
|
||||||
|
|||||||
Reference in New Issue
Block a user