mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
UI: Uncheck record/replay buffer buttons if fail
Closes obsproject/obs-studio#1375
This commit is contained in:
parent
b6665f9cc0
commit
2e18745c37
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue