mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-02 09:33:33 +00:00
UI: Always show chapter marker hotkey
This commit is contained in:
parent
298e858f63
commit
0680b642e9
|
@ -736,7 +736,7 @@ Basic.Main.StopRecording="Stop Recording"
|
|||
Basic.Main.PauseRecording="Pause Recording"
|
||||
Basic.Main.UnpauseRecording="Unpause Recording"
|
||||
Basic.Main.SplitFile="Split Recording File"
|
||||
Basic.Main.AddChapterMarker="Add Chapter Marker"
|
||||
Basic.Main.AddChapterMarker="Add Chapter Marker (Hybrid MP4 only)"
|
||||
Basic.Main.StoppingRecording="Stopping Recording..."
|
||||
Basic.Main.StopReplayBuffer="Stop Replay Buffer"
|
||||
Basic.Main.StoppingReplayBuffer="Stopping Replay Buffer..."
|
||||
|
|
|
@ -2889,22 +2889,14 @@ void OBSBasic::CreateHotkeys()
|
|||
this);
|
||||
LoadHotkey(splitFileHotkey, "OBSBasic.SplitFile");
|
||||
|
||||
/* Adding chapters is only supported by the native MP4 output */
|
||||
const string_view output_id =
|
||||
obs_output_get_id(outputHandler->fileOutput);
|
||||
if (output_id == "mp4_output") {
|
||||
addChapterHotkey = obs_hotkey_register_frontend(
|
||||
"OBSBasic.AddChapterMarker",
|
||||
Str("Basic.Main.AddChapterMarker"),
|
||||
[](void *, obs_hotkey_id, obs_hotkey_t *,
|
||||
bool pressed) {
|
||||
if (pressed)
|
||||
obs_frontend_recording_add_chapter(
|
||||
nullptr);
|
||||
},
|
||||
this);
|
||||
LoadHotkey(addChapterHotkey, "OBSBasic.AddChapterMarker");
|
||||
}
|
||||
addChapterHotkey = obs_hotkey_register_frontend(
|
||||
"OBSBasic.AddChapterMarker", Str("Basic.Main.AddChapterMarker"),
|
||||
[](void *, obs_hotkey_id, obs_hotkey_t *, bool pressed) {
|
||||
if (pressed)
|
||||
obs_frontend_recording_add_chapter(nullptr);
|
||||
},
|
||||
this);
|
||||
LoadHotkey(addChapterHotkey, "OBSBasic.AddChapterMarker");
|
||||
|
||||
replayBufHotkeys = obs_hotkey_pair_register_frontend(
|
||||
"OBSBasic.StartReplayBuffer",
|
||||
|
|
Loading…
Reference in a new issue