mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-02 07:46:07 +00:00
Show stream error dialog when launching from the CLI
This commit is contained in:
parent
8a5e3cdb76
commit
b46a3cf759
@ -73,7 +73,14 @@ Item {
|
|||||||
function sessionFinished()
|
function sessionFinished()
|
||||||
{
|
{
|
||||||
if (quitAfter) {
|
if (quitAfter) {
|
||||||
Qt.quit()
|
if (errorDialog.text) {
|
||||||
|
// Quit when the error dialog is acknowledged
|
||||||
|
errorDialog.open()
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Quit immediately
|
||||||
|
Qt.quit()
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// Exit this view
|
// Exit this view
|
||||||
stackView.pop()
|
stackView.pop()
|
||||||
@ -164,8 +171,19 @@ Item {
|
|||||||
modality:Qt.WindowModal
|
modality:Qt.WindowModal
|
||||||
icon: StandardIcon.Critical
|
icon: StandardIcon.Critical
|
||||||
standardButtons: StandardButton.Ok | StandardButton.Help
|
standardButtons: StandardButton.Ok | StandardButton.Help
|
||||||
|
|
||||||
|
onAccepted: {
|
||||||
|
if (quitAfter) {
|
||||||
|
Qt.quit()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
onHelp: {
|
onHelp: {
|
||||||
Qt.openUrlExternally("https://github.com/moonlight-stream/moonlight-docs/wiki/Troubleshooting");
|
Qt.openUrlExternally("https://github.com/moonlight-stream/moonlight-docs/wiki/Troubleshooting");
|
||||||
|
|
||||||
|
if (quitAfter) {
|
||||||
|
Qt.quit()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user