UI: Log 'Hide OBS from capture' on startup & settings change

This commit is contained in:
Matt Gajownik 2022-02-20 13:38:17 +11:00
parent 269d48f681
commit 2ded0f7050
2 changed files with 9 additions and 0 deletions

View file

@ -1455,6 +1455,12 @@ bool OBSApp::OBSInit()
blog(LOG_INFO, "Browser Hardware Acceleration: %s",
browserHWAccel ? "true" : "false");
#endif
#ifdef _WIN32
bool hideFromCapture = config_get_bool(globalConfig, "BasicWindow",
"HideOBSWindowsFromCapture");
blog(LOG_INFO, "Hide OBS windows from screen capture: %s",
hideFromCapture ? "true" : "false");
#endif
blog(LOG_INFO, "Qt Version: %s (runtime), %s (compiled)", qVersion(),
QT_VERSION_STR);

View file

@ -3008,6 +3008,9 @@ void OBSBasicSettings::SaveGeneralSettings()
main->SetDisplayAffinity(window);
}
}
blog(LOG_INFO, "Hide OBS windows from screen capture: %s",
hide_window ? "true" : "false");
}
#endif
if (WidgetChanged(ui->openStatsOnStartup))