|
@@ -1241,6 +1241,9 @@ void OBSBasicSettings::LoadGeneralSettings()
|
|
|
config_get_bool(GetGlobalConfig(), "BasicWindow",
|
|
|
"HideOBSWindowsFromCapture");
|
|
|
ui->hideOBSFromCapture->setChecked(hideWindowFromCapture);
|
|
|
+
|
|
|
+ connect(ui->hideOBSFromCapture, SIGNAL(stateChanged(int)), this,
|
|
|
+ SLOT(HideOBSWindowWarning(int)));
|
|
|
}
|
|
|
#endif
|
|
|
|
|
@@ -4209,6 +4212,24 @@ void OBSBasicSettings::SpeakerLayoutChanged(int idx)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+void OBSBasicSettings::HideOBSWindowWarning(int state)
|
|
|
+{
|
|
|
+ if (loading || state == Qt::Unchecked)
|
|
|
+ return;
|
|
|
+
|
|
|
+ if (config_get_bool(GetGlobalConfig(), "General",
|
|
|
+ "WarnedAboutHideOBSFromCapture"))
|
|
|
+ return;
|
|
|
+
|
|
|
+ OBSMessageBox::information(
|
|
|
+ this, QTStr("Basic.Settings.General.HideOBSWindowsFromCapture"),
|
|
|
+ QTStr("Basic.Settings.General.HideOBSWindowsFromCapture.Message"));
|
|
|
+
|
|
|
+ config_set_bool(GetGlobalConfig(), "General",
|
|
|
+ "WarnedAboutHideOBSFromCapture", true);
|
|
|
+ config_save_safe(GetGlobalConfig(), "tmp", nullptr);
|
|
|
+}
|
|
|
+
|
|
|
/*
|
|
|
* resets current bitrate if too large and restricts the number of bitrates
|
|
|
* displayed when multichannel OFF
|