Ignore stream button updates while shutting down
This commit is contained in:
parent
c8b7f3eab4
commit
044fac9043
@ -1364,6 +1364,7 @@ void OBS::GetSceneCollection(StringList &sceneCollectionList)
|
|||||||
|
|
||||||
void OBS::RefreshStreamButtons(bool disable)
|
void OBS::RefreshStreamButtons(bool disable)
|
||||||
{
|
{
|
||||||
|
if (bShuttingDown) return;
|
||||||
int networkMode = AppConfig->GetInt(TEXT("Publish"), TEXT("Mode"), 2);
|
int networkMode = AppConfig->GetInt(TEXT("Publish"), TEXT("Mode"), 2);
|
||||||
bRecordingOnly = (networkMode == 1);
|
bRecordingOnly = (networkMode == 1);
|
||||||
bool canStream = networkMode == 0 && !bTestStream;
|
bool canStream = networkMode == 0 && !bTestStream;
|
||||||
@ -1380,6 +1381,7 @@ void OBS::RefreshStreamButtons(bool disable)
|
|||||||
|
|
||||||
void OBS::ConfigureStreamButtons()
|
void OBS::ConfigureStreamButtons()
|
||||||
{
|
{
|
||||||
|
if (bShuttingDown) return;
|
||||||
RefreshStreamButtons();
|
RefreshStreamButtons();
|
||||||
SetWindowText(GetDlgItem(hwndMain, ID_STARTSTOP), bStreaming ? Str("MainWindow.StopStream") : Str("MainWindow.StartStream"));
|
SetWindowText(GetDlgItem(hwndMain, ID_STARTSTOP), bStreaming ? Str("MainWindow.StopStream") : Str("MainWindow.StartStream"));
|
||||||
SetWindowText(GetDlgItem(hwndMain, ID_TOGGLERECORDING), bRecording ? Str("MainWindow.StopRecording") : Str("MainWindow.StartRecording"));
|
SetWindowText(GetDlgItem(hwndMain, ID_TOGGLERECORDING), bRecording ? Str("MainWindow.StopRecording") : Str("MainWindow.StartRecording"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user