From 710648f3f488d47f4f18d2fb693ed6b82bfb12d1 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 9 Feb 2019 21:15:17 -0800 Subject: [PATCH] Fix QuitSegue -> StreamSegue transition to be direct via replacement and disallow toolbar interactions --- app/gui/QuitSegue.qml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/app/gui/QuitSegue.qml b/app/gui/QuitSegue.qml index 03b2f07c..b876c2ea 100644 --- a/app/gui/QuitSegue.qml +++ b/app/gui/QuitSegue.qml @@ -27,19 +27,26 @@ Item { errorDialog.open() } - // Exit this view - stackView.pop() - // If we're supposed to launch another game after this, do so now if (error === undefined && nextSession !== null) { var component = Qt.createComponent("StreamSegue.qml") 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: { if (visible) { + // Hide the toolbar before we start loading + toolBar.visible = false + // Connect the quit completion signal ComputerManager.quitAppCompleted.connect(quitAppCompleted) }