mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-09 09:48:43 +00:00
Print error dialogs and warning toasts to the log
This commit is contained in:
parent
7976189d56
commit
715429c13c
3 changed files with 4 additions and 0 deletions
|
@ -26,6 +26,7 @@ Item {
|
||||||
function onLaunchFailed(message) {
|
function onLaunchFailed(message) {
|
||||||
errorDialog.text = message
|
errorDialog.text = message
|
||||||
errorDialog.open()
|
errorDialog.open()
|
||||||
|
console.error(message)
|
||||||
}
|
}
|
||||||
|
|
||||||
function onAppQuitRequired(appName) {
|
function onAppQuitRequired(appName) {
|
||||||
|
|
|
@ -18,6 +18,7 @@ Item {
|
||||||
if (error !== undefined) {
|
if (error !== undefined) {
|
||||||
errorDialog.text = error
|
errorDialog.text = error
|
||||||
errorDialog.open()
|
errorDialog.open()
|
||||||
|
console.error(error)
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we're supposed to launch another game after this, do so now
|
// If we're supposed to launch another game after this, do so now
|
||||||
|
|
|
@ -45,6 +45,7 @@ Item {
|
||||||
{
|
{
|
||||||
// Display the error dialog after Session::exec() returns
|
// Display the error dialog after Session::exec() returns
|
||||||
streamSegueErrorDialog.text = text
|
streamSegueErrorDialog.text = text
|
||||||
|
console.error(text)
|
||||||
}
|
}
|
||||||
|
|
||||||
function displayLaunchWarning(text)
|
function displayLaunchWarning(text)
|
||||||
|
@ -56,6 +57,7 @@ Item {
|
||||||
toast.text = text
|
toast.text = text
|
||||||
toast.timeout = 3000
|
toast.timeout = 3000
|
||||||
toast.visible = true
|
toast.visible = true
|
||||||
|
console.warn(text)
|
||||||
}
|
}
|
||||||
|
|
||||||
function quitStarting()
|
function quitStarting()
|
||||||
|
|
Loading…
Reference in a new issue