mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
UI: Reset UUIDs in duplicated collection
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user