mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-08-29 13:30:34 +00:00
Fix QuitSegue -> StreamSegue transition to be direct via replacement and disallow toolbar interactions
This commit is contained in:
+11
-4
@@ -27,19 +27,26 @@ Item {
|
|||||||
errorDialog.open()
|
errorDialog.open()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Exit this view
|
|
||||||
stackView.pop()
|
|
||||||
|
|
||||||
// If we're supposed to launch another game after this, do so now
|
// If we're supposed to launch another game after this, do so now
|
||||||
if (error === undefined && nextSession !== null) {
|
if (error === undefined && nextSession !== null) {
|
||||||
var component = Qt.createComponent("StreamSegue.qml")
|
var component = Qt.createComponent("StreamSegue.qml")
|
||||||
var segue = component.createObject(stackView, {"appName": nextAppName, "session": nextSession})
|
var segue = component.createObject(stackView, {"appName": nextAppName, "session": nextSession})
|
||||||
stackView.push(segue)
|
stackView.replace(segue)
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Show the toolbar again
|
||||||
|
toolBar.visible = true
|
||||||
|
|
||||||
|
// Exit this view
|
||||||
|
stackView.pop()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onVisibleChanged: {
|
onVisibleChanged: {
|
||||||
if (visible) {
|
if (visible) {
|
||||||
|
// Hide the toolbar before we start loading
|
||||||
|
toolBar.visible = false
|
||||||
|
|
||||||
// Connect the quit completion signal
|
// Connect the quit completion signal
|
||||||
ComputerManager.quitAppCompleted.connect(quitAppCompleted)
|
ComputerManager.quitAppCompleted.connect(quitAppCompleted)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user