mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-22 21:28:32 -05:00
UI: Add hotkey to split file
Adds a frontend hotkey that splits the current recording file. Ideally, this would only appear if file splitting is enabled like the replay buffer hotkey, however that is an output hotkey which is hidden because the output doesn't exist. This doesn't work here since the recording output is obviously always available, but is unaware of whether file splitting is enabled until the output is started.
This commit is contained in:
committed by
Sebastian Beckmann
parent
0c8befd4b3
commit
ea9350bcbf
@@ -2452,6 +2452,15 @@ void OBSBasic::CreateHotkeys()
|
||||
LoadHotkeyPair(pauseHotkeys, "OBSBasic.PauseRecording",
|
||||
"OBSBasic.UnpauseRecording");
|
||||
|
||||
splitFileHotkey = obs_hotkey_register_frontend(
|
||||
"OBSBasic.SplitFile", Str("Basic.Main.SplitFile"),
|
||||
[](void *, obs_hotkey_id, obs_hotkey_t *, bool pressed) {
|
||||
if (pressed)
|
||||
obs_frontend_recording_split_file();
|
||||
},
|
||||
this);
|
||||
LoadHotkey(splitFileHotkey, "OBSBasic.SplitFile");
|
||||
|
||||
replayBufHotkeys = obs_hotkey_pair_register_frontend(
|
||||
"OBSBasic.StartReplayBuffer",
|
||||
Str("Basic.Main.StartReplayBuffer"),
|
||||
|
||||
Reference in New Issue
Block a user