mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-19 20:52:43 -04:00
UI: Prevent user from starting ouputs while in settings
There's a loophole that would allow users to activate an output while in the settings window via hotkeys -- this prevents that from being able to happen. Note that users can still shut down outputs, but they can no longer start them up while in the settings window.
This commit is contained in:
1 parent
4ff7ac0bfa
commit
840bd07365
2 files changed
+8
No files matched your search
@@ -277,6 +277,8 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent)
|
||||
|
||||
ui->setupUi(this);
|
||||
|
||||
main->EnableOutputs(false);
|
||||
|
||||
PopulateAACBitrates({ui->simpleOutputABitrate,
|
||||
ui->advOutTrack1Bitrate, ui->advOutTrack2Bitrate,
|
||||
ui->advOutTrack3Bitrate, ui->advOutTrack4Bitrate,
|
||||
@@ -654,6 +656,11 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent)
|
||||
UpdateAutomaticReplayBufferCheckboxes();
|
||||
}
|
||||
|
||||
OBSBasicSettings::~OBSBasicSettings()
|
||||
{
|
||||
main->EnableOutputs(true);
|
||||
}
|
||||
|
||||
void OBSBasicSettings::SaveCombo(QComboBox *widget, const char *section,
|
||||
const char *value)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user