Browse Source

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.
cg2121 7 years ago
parent
commit
cfa427c44f
1 changed files with 6 additions and 2 deletions
  1. 6 2
      UI/window-basic-main.cpp

+ 6 - 2
UI/window-basic-main.cpp

@@ -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();