Use specific resuming text when reconnecting to a game
This commit is contained in:
parent
949aaaff2a
commit
68acb78ae6
2 changed files with 8 additions and 2 deletions
|
|
@ -197,7 +197,11 @@ CenteredGridView {
|
||||||
}
|
}
|
||||||
|
|
||||||
var component = Qt.createComponent("StreamSegue.qml")
|
var component = Qt.createComponent("StreamSegue.qml")
|
||||||
var segue = component.createObject(stackView, {"appName": model.name, "session": appModel.createSessionForApp(index)})
|
var segue = component.createObject(stackView, {
|
||||||
|
"appName": model.name,
|
||||||
|
"session": appModel.createSessionForApp(index),
|
||||||
|
"isResume": runningId === model.appid
|
||||||
|
})
|
||||||
stackView.push(segue)
|
stackView.push(segue)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,9 @@ import Session 1.0
|
||||||
Item {
|
Item {
|
||||||
property Session session
|
property Session session
|
||||||
property string appName
|
property string appName
|
||||||
property string stageText : qsTr("Starting %1...").arg(appName)
|
property string stageText : isResume ? qsTr("Resuming %1...").arg(appName) :
|
||||||
|
qsTr("Starting %1...").arg(appName)
|
||||||
|
property bool isResume : false
|
||||||
property bool quitAfter : false
|
property bool quitAfter : false
|
||||||
|
|
||||||
function stageStarting(stage)
|
function stageStarting(stage)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue