UI: Remove requirement for replay buffer hotkey
Fixes https://github.com/obsproject/obs-studio/issues/2807
This commit is contained in:
parent
dac1f7ddac
commit
efc23bb1ee
@ -324,8 +324,6 @@ Output.RecordNoSpace.Msg="There is not sufficient disk space to continue recordi
|
||||
Output.RecordError.Title="Recording error"
|
||||
Output.RecordError.Msg="An unspecified error occurred while recording."
|
||||
Output.RecordError.EncodeErrorMsg="An encoder error occurred while recording."
|
||||
Output.ReplayBuffer.NoHotkey.Title="No hotkey set!"
|
||||
Output.ReplayBuffer.NoHotkey.Msg="No save hotkey set for replay buffer. Please set the \"Save\" hotkey to use for saving replay recordings."
|
||||
|
||||
# output recording messages
|
||||
Output.BadPath.Title="Bad File Path"
|
||||
@ -715,7 +713,6 @@ Basic.Settings.Output.ReplayBuffer.SecondsMax="Maximum Replay Time"
|
||||
Basic.Settings.Output.ReplayBuffer.MegabytesMax="Maximum Memory (Megabytes)"
|
||||
Basic.Settings.Output.ReplayBuffer.Estimate="Estimated memory usage: %1 MB"
|
||||
Basic.Settings.Output.ReplayBuffer.EstimateUnknown="Cannot estimate memory usage. Please set maximum memory limit."
|
||||
Basic.Settings.Output.ReplayBuffer.HotkeyMessage="(Note: Make sure to set a hotkey for the replay buffer in the hotkeys section)"
|
||||
Basic.Settings.Output.ReplayBuffer.Prefix="Replay Buffer Filename Prefix"
|
||||
Basic.Settings.Output.ReplayBuffer.Suffix="Suffix"
|
||||
Basic.Settings.Output.Simple.SavePath="Recording Path"
|
||||
|
@ -1766,13 +1766,6 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QLabel" name="label_45">
|
||||
<property name="text">
|
||||
<string>Basic.Settings.Output.ReplayBuffer.HotkeyMessage</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<widget class="QLabel" name="simpleRBEstimate">
|
||||
<property name="text">
|
||||
<string notr="true"/>
|
||||
@ -3676,13 +3669,6 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QLabel" name="advRBHotkeyLabel">
|
||||
<property name="text">
|
||||
<string>Basic.Settings.Output.ReplayBuffer.HotkeyMessage</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<widget class="QLabel" name="advRBEstimate">
|
||||
<property name="text">
|
||||
<string notr="true"/>
|
||||
|
@ -5727,9 +5727,6 @@ void OBSBasic::RecordingStop(int code, QString last_error)
|
||||
UpdatePause(false);
|
||||
}
|
||||
|
||||
#define RP_NO_HOTKEY_TITLE QTStr("Output.ReplayBuffer.NoHotkey.Title")
|
||||
#define RP_NO_HOTKEY_TEXT QTStr("Output.ReplayBuffer.NoHotkey.Msg")
|
||||
|
||||
void OBSBasic::ShowReplayBufferPauseWarning()
|
||||
{
|
||||
auto msgBox = []() {
|
||||
@ -5781,21 +5778,6 @@ void OBSBasic::StartReplayBuffer()
|
||||
return;
|
||||
}
|
||||
|
||||
obs_output_t *output = outputHandler->replayBuffer;
|
||||
obs_data_t *hotkeys = obs_hotkeys_save_output(output);
|
||||
obs_data_array_t *bindings =
|
||||
obs_data_get_array(hotkeys, "ReplayBuffer.Save");
|
||||
size_t count = obs_data_array_count(bindings);
|
||||
obs_data_array_release(bindings);
|
||||
obs_data_release(hotkeys);
|
||||
|
||||
if (!count) {
|
||||
OBSMessageBox::information(this, RP_NO_HOTKEY_TITLE,
|
||||
RP_NO_HOTKEY_TEXT);
|
||||
replayBufferButton->setChecked(false);
|
||||
return;
|
||||
}
|
||||
|
||||
if (api)
|
||||
api->on_event(OBS_FRONTEND_EVENT_REPLAY_BUFFER_STARTING);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user