浏览代码

UI: Disable replay save button when paused

Another indicator to the user that replays can't be saved
when recordings are paused.
cg2121 3 年之前
父节点
当前提交
8c732d31a7
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      UI/window-basic-main.cpp

+ 6 - 0
UI/window-basic-main.cpp

@@ -9680,6 +9680,9 @@ void OBSBasic::PauseRecording()
 
 
 		os_atomic_set_bool(&recording_paused, true);
 		os_atomic_set_bool(&recording_paused, true);
 
 
+		if (replay)
+			replay->setEnabled(false);
+
 		if (api)
 		if (api)
 			api->on_event(OBS_FRONTEND_EVENT_RECORDING_PAUSED);
 			api->on_event(OBS_FRONTEND_EVENT_RECORDING_PAUSED);
 
 
@@ -9724,6 +9727,9 @@ void OBSBasic::UnpauseRecording()
 
 
 		os_atomic_set_bool(&recording_paused, false);
 		os_atomic_set_bool(&recording_paused, false);
 
 
+		if (replay)
+			replay->setEnabled(true);
+
 		if (api)
 		if (api)
 			api->on_event(OBS_FRONTEND_EVENT_RECORDING_UNPAUSED);
 			api->on_event(OBS_FRONTEND_EVENT_RECORDING_UNPAUSED);
 	}
 	}