UI: Default stream / record confirm dialogs to "No"
Helps prevent accidental stream starting if for example a cat walks on the spacebar while the button has focus.master
parent
2a6baf9886
commit
2a917531fd
|
@ -5742,7 +5742,9 @@ void OBSBasic::on_streamButton_clicked()
|
||||||
QMessageBox::StandardButton button =
|
QMessageBox::StandardButton button =
|
||||||
OBSMessageBox::question(
|
OBSMessageBox::question(
|
||||||
this, QTStr("ConfirmStop.Title"),
|
this, QTStr("ConfirmStop.Title"),
|
||||||
QTStr("ConfirmStop.Text"));
|
QTStr("ConfirmStop.Text"),
|
||||||
|
QMessageBox::Yes | QMessageBox::No,
|
||||||
|
QMessageBox::No);
|
||||||
|
|
||||||
if (button == QMessageBox::No) {
|
if (button == QMessageBox::No) {
|
||||||
ui->streamButton->setChecked(true);
|
ui->streamButton->setChecked(true);
|
||||||
|
@ -5778,7 +5780,9 @@ void OBSBasic::on_streamButton_clicked()
|
||||||
QMessageBox::StandardButton button =
|
QMessageBox::StandardButton button =
|
||||||
OBSMessageBox::question(
|
OBSMessageBox::question(
|
||||||
this, QTStr("ConfirmStart.Title"),
|
this, QTStr("ConfirmStart.Title"),
|
||||||
QTStr("ConfirmStart.Text"));
|
QTStr("ConfirmStart.Text"),
|
||||||
|
QMessageBox::Yes | QMessageBox::No,
|
||||||
|
QMessageBox::No);
|
||||||
|
|
||||||
if (button == QMessageBox::No) {
|
if (button == QMessageBox::No) {
|
||||||
ui->streamButton->setChecked(false);
|
ui->streamButton->setChecked(false);
|
||||||
|
@ -5800,7 +5804,9 @@ void OBSBasic::on_recordButton_clicked()
|
||||||
QMessageBox::StandardButton button =
|
QMessageBox::StandardButton button =
|
||||||
OBSMessageBox::question(
|
OBSMessageBox::question(
|
||||||
this, QTStr("ConfirmStopRecord.Title"),
|
this, QTStr("ConfirmStopRecord.Title"),
|
||||||
QTStr("ConfirmStopRecord.Text"));
|
QTStr("ConfirmStopRecord.Text"),
|
||||||
|
QMessageBox::Yes | QMessageBox::No,
|
||||||
|
QMessageBox::No);
|
||||||
|
|
||||||
if (button == QMessageBox::No) {
|
if (button == QMessageBox::No) {
|
||||||
ui->recordButton->setChecked(true);
|
ui->recordButton->setChecked(true);
|
||||||
|
|
Loading…
Reference in New Issue