UI: Uncheck record/replay buffer buttons if fail

Closes obsproject/obs-studio#1375
This commit is contained in:
cg2121 2018-07-31 21:35:06 -07:00 committed by jp9000
parent b6665f9cc0
commit 2e18745c37

View file

@ -4855,7 +4855,9 @@ void OBSBasic::StartRecording()
api->on_event(OBS_FRONTEND_EVENT_RECORDING_STARTING);
SaveProject();
outputHandler->StartRecording();
if (!outputHandler->StartRecording())
ui->recordButton->setChecked(false);
}
void OBSBasic::RecordStopping()
@ -4979,7 +4981,8 @@ void OBSBasic::StartReplayBuffer()
api->on_event(OBS_FRONTEND_EVENT_REPLAY_BUFFER_STARTING);
SaveProject();
outputHandler->StartReplayBuffer();
if (!outputHandler->StartReplayBuffer())
replayBufferButton->setChecked(false);
}
void OBSBasic::ReplayBufferStopping()