UI: Add startup flag to disable missing files window

Adds a startup flag (--disable-missing-files-check) to disable the
missing files dialog from appearing on load. For some users, the
missing files dialog may interfere with automation of OBS, or the
user may also purposefully have missing files in their scene
collection which they do not want to be warned about.
This commit is contained in:
tt2468
2021-04-13 00:00:13 -07:00
committed by Dillon Pentz
parent 9ca70f4470
commit 502bc3bf0a
3 changed files with 22 additions and 1 deletions

View File

@@ -1173,7 +1173,8 @@ retryScene:
LogScenes();
if (obs_missing_files_count(files) > 0) {
if (obs_missing_files_count(files) > 0 &&
!App()->IsMissingFilesCheckDisabled()) {
/* the window hasn't fully initialized by this point on macOS,
* so put this at the end of the current task queue. Fixes a
* bug where the window be behind OBS on startup */