Merge pull request #1353 from cg2121/fix-checkable-buttons

UI: Fix stream button checkable state
This commit is contained in:
Jim 2018-07-18 01:28:49 -07:00 committed by GitHub
commit 75d460b2e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4954,8 +4954,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();
@ -4969,8 +4971,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();