UI: Fix stream button checkable state
This fixes an issue where the stream button would still be checked when clicking no on the stream confirmation dialog.master
parent
618a1c5faf
commit
cfa427c44f
|
@ -4953,9 +4953,11 @@ void OBSBasic::on_streamButton_clicked()
|
||||||
QTStr("ConfirmStop.Title"),
|
QTStr("ConfirmStop.Title"),
|
||||||
QTStr("ConfirmStop.Text"));
|
QTStr("ConfirmStop.Text"));
|
||||||
|
|
||||||
if (button == QMessageBox::No)
|
if (button == QMessageBox::No) {
|
||||||
|
ui->streamButton->setChecked(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
StopStreaming();
|
StopStreaming();
|
||||||
} else {
|
} else {
|
||||||
|
@ -4968,9 +4970,11 @@ void OBSBasic::on_streamButton_clicked()
|
||||||
QTStr("ConfirmStart.Title"),
|
QTStr("ConfirmStart.Title"),
|
||||||
QTStr("ConfirmStart.Text"));
|
QTStr("ConfirmStart.Text"));
|
||||||
|
|
||||||
if (button == QMessageBox::No)
|
if (button == QMessageBox::No) {
|
||||||
|
ui->streamButton->setChecked(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
StartStreaming();
|
StartStreaming();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue