From 8c732d31a773c5e139b9bcbc12cd85d90dbae399 Mon Sep 17 00:00:00 2001 From: cg2121 Date: Fri, 4 Mar 2022 12:21:21 -0600 Subject: [PATCH] UI: Disable replay save button when paused Another indicator to the user that replays can't be saved when recordings are paused. --- UI/window-basic-main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index a227b3881..8b337daa7 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -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); }