From bab9d6e96d1b2fbfb77408a1d757f85b2f28ee35 Mon Sep 17 00:00:00 2001 From: Fred Emmott Date: Wed, 17 Oct 2018 18:24:26 -0700 Subject: [PATCH] UI: Emit STREAMING_STOPPING event immediately If there's a delay, it will *also* be ommitted after the appropriate number of seconds. I was originally going to add a new event for this, however this is consistent with STREAMING_STARTING, which is emitted at the start of the delay, not the end. --- UI/window-basic-main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index ab1520094..4e48e19e6 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -4911,6 +4911,9 @@ void OBSBasic::StreamDelayStopping(int sec) ui->streamButton->setMenu(startStreamMenu); ui->statusbar->StreamDelayStopping(sec); + + if (api) + api->on_event(OBS_FRONTEND_EVENT_STREAMING_STOPPING); } void OBSBasic::StreamingStart()