Add a segue to the streaming window

This commit is contained in:
Cameron Gutman
2018-07-08 22:06:52 -07:00
parent 5a04a256e0
commit 83ca211d75
3 changed files with 105 additions and 9 deletions
+5 -9
View File
@@ -72,16 +72,12 @@ GridView {
anchors.fill: parent
onClicked: {
// TODO: Check if a different game is running
var session = appModel.createSessionForApp(index)
// Don't poll while the stream is running
ComputerManager.stopPollingAsync()
// Run the streaming session to completion
session.exec()
// Start polling again
ComputerManager.startPolling()
var component = Qt.createComponent("StreamSegue.qml")
var segue = component.createObject(stackView)
segue.appname = model.name
segue.session = appModel.createSessionForApp(index)
stackView.push(segue)
}
}
}