mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
UI: Disable replay save button when paused
Another indicator to the user that replays can't be saved when recordings are paused.
This commit is contained in:
parent
0751416db0
commit
8c732d31a7
|
@ -9680,6 +9680,9 @@ void OBSBasic::PauseRecording()
|
|||
|
||||
os_atomic_set_bool(&recording_paused, true);
|
||||
|
||||
if (replay)
|
||||
replay->setEnabled(false);
|
||||
|
||||
if (api)
|
||||
api->on_event(OBS_FRONTEND_EVENT_RECORDING_PAUSED);
|
||||
|
||||
|
@ -9724,6 +9727,9 @@ void OBSBasic::UnpauseRecording()
|
|||
|
||||
os_atomic_set_bool(&recording_paused, false);
|
||||
|
||||
if (replay)
|
||||
replay->setEnabled(true);
|
||||
|
||||
if (api)
|
||||
api->on_event(OBS_FRONTEND_EVENT_RECORDING_UNPAUSED);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue