mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
UI: Fix missing broadcast state reset on force-stop
This commit is contained in:
parent
5ea7aa3b7e
commit
aba94c71e2
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue