浏览代码

UI: Reset UUIDs in duplicated collection

derrod 2 年之前
父节点
当前提交
02225aa8bf
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      UI/window-basic-main-scene-collections.cpp

+ 4 - 0
UI/window-basic-main-scene-collections.cpp

@@ -157,9 +157,13 @@ bool OBSBasic::AddSceneCollection(bool create_new, const QString &qname)
 				  "SceneCollection", name.c_str());
 		config_set_string(App()->GlobalConfig(), "Basic",
 				  "SceneCollectionFile", file.c_str());
+
 		if (create_new) {
 			CreateDefaultScene(false);
+		} else {
+			obs_reset_source_uuids();
 		}
+
 		SaveProjectNow();
 		RefreshSceneCollections();
 	};