diff --git a/obs/window-basic-main-scene-collections.cpp b/obs/window-basic-main-scene-collections.cpp index 1c3da0924..710a16313 100644 --- a/obs/window-basic-main-scene-collections.cpp +++ b/obs/window-basic-main-scene-collections.cpp @@ -165,7 +165,7 @@ void OBSBasic::AddSceneCollection(bool create_new) config_set_string(App()->GlobalConfig(), "Basic", "SceneCollectionFile", file.c_str()); if (create_new) { - CreateDefaultScene(); + CreateDefaultScene(false); } SaveProjectNow(); RefreshSceneCollections(); diff --git a/obs/window-basic-main.cpp b/obs/window-basic-main.cpp index e7507f775..fa3af5b45 100644 --- a/obs/window-basic-main.cpp +++ b/obs/window-basic-main.cpp @@ -384,7 +384,7 @@ void OBSBasic::CreateFirstRunSources(obs_scene_t *scene) Str("Basic.AuxDevice1"), 3); } -void OBSBasic::CreateDefaultScene() +void OBSBasic::CreateDefaultScene(bool firstStart) { disableSaving++; @@ -395,7 +395,8 @@ void OBSBasic::CreateDefaultScene() obs_add_source(source); - CreateFirstRunSources(scene); + if (firstStart) + CreateFirstRunSources(scene); obs_set_output_source(0, obs_scene_get_source(scene)); obs_scene_release(scene); @@ -460,7 +461,7 @@ void OBSBasic::Load(const char *file) { if (!file || !os_file_exists(file)) { blog(LOG_INFO, "No scene file found, creating default scene"); - CreateDefaultScene(); + CreateDefaultScene(true); SaveProject(); return; } @@ -472,7 +473,7 @@ void OBSBasic::Load(const char *file) disableSaving--; blog(LOG_ERROR, "Failed to load '%s', creating default scene", file); - CreateDefaultScene(); + CreateDefaultScene(true); SaveProject(); return; } diff --git a/obs/window-basic-main.hpp b/obs/window-basic-main.hpp index 6622449b8..e5db733f3 100644 --- a/obs/window-basic-main.hpp +++ b/obs/window-basic-main.hpp @@ -114,7 +114,7 @@ private: void SetupEncoders(); void CreateFirstRunSources(obs_scene_t *scene); - void CreateDefaultScene(); + void CreateDefaultScene(bool firstStart); void ClearVolumeControls();