UI: Fix pause hotkey not working properly

Setting the check state cause the toggle signal to trigger, so it would
pause and immediately unpause.
master
jp9000 2019-09-12 12:06:09 -07:00
parent 656873ab94
commit 5287518044
1 changed files with 4 additions and 0 deletions

View File

@ -7426,7 +7426,9 @@ void OBSBasic::PauseRecording()
if (obs_output_pause(output, true)) {
pause->setAccessibleName(QTStr("Basic.Main.UnpauseRecording"));
pause->setToolTip(QTStr("Basic.Main.UnpauseRecording"));
pause->blockSignals(true);
pause->setChecked(true);
pause->blockSignals(false);
os_atomic_set_bool(&recording_paused, true);
if (api)
@ -7447,7 +7449,9 @@ void OBSBasic::UnpauseRecording()
if (obs_output_pause(output, false)) {
pause->setAccessibleName(QTStr("Basic.Main.PauseRecording"));
pause->setToolTip(QTStr("Basic.Main.PauseRecording"));
pause->blockSignals(true);
pause->setChecked(false);
pause->blockSignals(false);
os_atomic_set_bool(&recording_paused, false);
if (api)