UI: Fix missing broadcast state reset on force-stop

This commit is contained in:
derrod
2021-08-30 22:30:27 -07:00
committed by Jim
parent 5ea7aa3b7e
commit aba94c71e2
+12
View File
@@ -6544,6 +6544,18 @@ void OBSBasic::ForceStopStreaming()
if (outputHandler->StreamingActive())
outputHandler->StopStreaming(true);
// special case: force reset broadcast state if
// no autostart and no autostop selected
if (!autoStartBroadcast && !broadcastActive) {
broadcastActive = false;
autoStartBroadcast = true;
autoStopBroadcast = true;
ui->broadcastButton->setVisible(false);
}
if (autoStopBroadcast)
broadcastActive = false;
OnDeactivate();
bool recordWhenStreaming = config_get_bool(