mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
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.
This commit is contained in:
@@ -4953,8 +4953,10 @@ void OBSBasic::on_streamButton_clicked()
|
||||
QTStr("ConfirmStop.Title"),
|
||||
QTStr("ConfirmStop.Text"));
|
||||
|
||||
if (button == QMessageBox::No)
|
||||
if (button == QMessageBox::No) {
|
||||
ui->streamButton->setChecked(true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
StopStreaming();
|
||||
@@ -4968,8 +4970,10 @@ void OBSBasic::on_streamButton_clicked()
|
||||
QTStr("ConfirmStart.Title"),
|
||||
QTStr("ConfirmStart.Text"));
|
||||
|
||||
if (button == QMessageBox::No)
|
||||
if (button == QMessageBox::No) {
|
||||
ui->streamButton->setChecked(false);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
StartStreaming();
|
||||
|
||||
Reference in New Issue
Block a user