UI: Show output's last error in failure dialog
Logs the last output error if given.
This commit is contained in:
parent
09d77878fd
commit
54e7267ad9
3 changed files with 22 additions and 13 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue