mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
UI: Show output's last error in failure dialog
Logs the last output error if given.
This commit is contained in:
committed by
Andersama
parent
09d77878fd
commit
54e7267ad9
@@ -4762,6 +4762,9 @@ void OBSBasic::StartStreaming()
|
||||
}
|
||||
|
||||
if (!outputHandler->StartStreaming(service)) {
|
||||
QString message = !outputHandler->lastError.empty()
|
||||
? QTStr(outputHandler->lastError.c_str())
|
||||
: QTStr("Output.StartFailedGeneric");
|
||||
ui->streamButton->setText(QTStr("Basic.Main.StartStreaming"));
|
||||
ui->streamButton->setEnabled(true);
|
||||
ui->streamButton->setChecked(false);
|
||||
@@ -4771,9 +4774,8 @@ void OBSBasic::StartStreaming()
|
||||
sysTrayStream->setEnabled(true);
|
||||
}
|
||||
|
||||
QMessageBox::critical(this,
|
||||
QTStr("Output.StartStreamFailed"),
|
||||
QTStr("Output.StartFailedGeneric"));
|
||||
QMessageBox::critical(this, QTStr("Output.StartStreamFailed"),
|
||||
message);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user