Fix race condition that could cause quit segue to never dismiss
Fixes #1060
This commit is contained in:
parent
bb444f306a
commit
7073dd26de
3 changed files with 6 additions and 7 deletions
|
|
@ -345,7 +345,7 @@ CenteredGridView {
|
|||
|
||||
function quitApp() {
|
||||
var component = Qt.createComponent("QuitSegue.qml")
|
||||
var params = {"appName": appName}
|
||||
var params = {"appName": appName, "quitRunningAppFn": appModel.quitRunningApp}
|
||||
if (segueToStream) {
|
||||
// Store the session and app name if we're going to stream after
|
||||
// successfully quitting the old app.
|
||||
|
|
@ -358,9 +358,6 @@ CenteredGridView {
|
|||
}
|
||||
|
||||
stackView.push(component.createObject(stackView, params))
|
||||
|
||||
// Trigger the quit after pushing the quit segue on screen
|
||||
appModel.quitRunningApp()
|
||||
}
|
||||
|
||||
onAccepted: quitApp()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue