Procházet zdrojové kódy

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.
Fred Emmott před 7 roky
rodič
revize
bab9d6e96d
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      UI/window-basic-main.cpp

+ 3 - 0
UI/window-basic-main.cpp

@@ -4911,6 +4911,9 @@ void OBSBasic::StreamDelayStopping(int sec)
 	ui->streamButton->setMenu(startStreamMenu);
 	ui->streamButton->setMenu(startStreamMenu);
 
 
 	ui->statusbar->StreamDelayStopping(sec);
 	ui->statusbar->StreamDelayStopping(sec);
+
+	if (api)
+		api->on_event(OBS_FRONTEND_EVENT_STREAMING_STOPPING);
 }
 }
 
 
 void OBSBasic::StreamingStart()
 void OBSBasic::StreamingStart()