UI: Add ShutDownActiveOutputsOnExit setting

Adds a new setting to the general OBS settings, which can be checked
in order to no longer show the "confirm close" dialog when there are
still streams/recordings running.
This commit is contained in:
Bob van de Vijver 2020-11-20 12:04:26 +01:00 • committed by Jim
commit 1b280e0ac4
5 changed files with 24 additions and 3 deletions

View file

@ -4531,7 +4531,10 @@ void OBSBasic::closeEvent(QCloseEvent *event)
"geometry",
saveGeometry().toBase64().constData());
if (outputHandler && outputHandler->Active()) {
bool confirmOnExit =
config_get_bool(GetGlobalConfig(), "General", "ConfirmOnExit");
if (confirmOnExit && outputHandler && outputHandler->Active()) {
SetShowing(true);
QMessageBox::StandardButton button = OBSMessageBox::question(