mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-08 09:18: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) {
|
||||
errorDialog.text = message
|
||||
errorDialog.open()
|
||||
console.error(message)
|
||||
}
|
||||
|
||||
function onAppQuitRequired(appName) {
|
||||
|
|
|
@ -18,6 +18,7 @@ Item {
|
|||
if (error !== undefined) {
|
||||
errorDialog.text = error
|
||||
errorDialog.open()
|
||||
console.error(error)
|
||||
}
|
||||
|
||||
// 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
|
||||
streamSegueErrorDialog.text = text
|
||||
console.error(text)
|
||||
}
|
||||
|
||||
function displayLaunchWarning(text)
|
||||
|
@ -56,6 +57,7 @@ Item {
|
|||
toast.text = text
|
||||
toast.timeout = 3000
|
||||
toast.visible = true
|
||||
console.warn(text)
|
||||
}
|
||||
|
||||
function quitStarting()
|
||||
|
|
Loading…
Reference in a new issue