瀏覽代碼

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 年之前
父節點
當前提交
cfa427c44f
共有 1 個文件被更改,包括 6 次插入2 次删除
  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();