UI: Prevent disabling replay buffer if it's active

master
Scratch 2020-10-08 16:32:12 +11:00 committed by Jim
parent a1c3fbee64
commit a94c0e055b
1 changed files with 4 additions and 0 deletions

View File

@ -4458,9 +4458,13 @@ void OBSBasicSettings::UpdateAutomaticReplayBufferCheckboxes()
switch (ui->outputMode->currentIndex()) {
case 0:
state = ui->simpleReplayBuf->isChecked();
ui->simpleReplayBuf->setEnabled(
!obs_frontend_replay_buffer_active());
break;
case 1:
state = ui->advReplayBuf->isChecked();
ui->advReplayBuf->setEnabled(
!obs_frontend_replay_buffer_active());
break;
}
ui->replayWhileStreaming->setEnabled(state);