Skip to content

Commit

Permalink
Show stream error dialog when launching from the CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
cgutman committed Dec 6, 2018
1 parent 8a5e3cd commit b46a3cf
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion app/gui/StreamSegue.qml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,14 @@ Item {
function sessionFinished()
{
if (quitAfter) {
Qt.quit()
if (errorDialog.text) {
// Quit when the error dialog is acknowledged
errorDialog.open()
}
else {
// Quit immediately
Qt.quit()
}
} else {
// Exit this view
stackView.pop()
Expand Down Expand Up @@ -164,8 +171,19 @@ Item {
modality:Qt.WindowModal
icon: StandardIcon.Critical
standardButtons: StandardButton.Ok | StandardButton.Help

onAccepted: {
if (quitAfter) {
Qt.quit()
}
}

onHelp: {
Qt.openUrlExternally("https://github.com/moonlight-stream/moonlight-docs/wiki/Troubleshooting");

if (quitAfter) {
Qt.quit()
}
}
}
}

0 comments on commit b46a3cf

Please sign in to comment.