mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-08 09:18:43 +00:00
Fix passing incorrect 'this' pointer to quitRunningApp()
This worked before due to Qt behavior that was changed in https://codereview.qt-project.org/c/qt/qtdeclarative/+/450393 to generate a warning in this situation. The old behavior remains the default, but this change avoids a warning in the logs.
This commit is contained in:
parent
9117f6565e
commit
e78b389bc0
2 changed files with 2 additions and 2 deletions
|
@ -350,7 +350,7 @@ CenteredGridView {
|
||||||
|
|
||||||
function quitApp() {
|
function quitApp() {
|
||||||
var component = Qt.createComponent("QuitSegue.qml")
|
var component = Qt.createComponent("QuitSegue.qml")
|
||||||
var params = {"appName": appName, "quitRunningAppFn": appModel.quitRunningApp}
|
var params = {"appName": appName, "quitRunningAppFn": () => appModel.quitRunningApp()}
|
||||||
if (segueToStream) {
|
if (segueToStream) {
|
||||||
// Store the session and app name if we're going to stream after
|
// Store the session and app name if we're going to stream after
|
||||||
// successfully quitting the old app.
|
// successfully quitting the old app.
|
||||||
|
|
|
@ -85,7 +85,7 @@ Item {
|
||||||
|
|
||||||
function quitApp() {
|
function quitApp() {
|
||||||
var component = Qt.createComponent("QuitSegue.qml")
|
var component = Qt.createComponent("QuitSegue.qml")
|
||||||
var params = {"appName": appName, "quitRunningAppFn": launcher.quitRunningApp}
|
var params = {"appName": appName, "quitRunningAppFn": () => launcher.quitRunningApp()}
|
||||||
stackView.push(component.createObject(stackView, params))
|
stackView.push(component.createObject(stackView, params))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue