Layers - Fixed node scripts not loading on duplicated/pasted scripts

This commit is contained in:
Robert committed 2022-10-31 22:47:31 +01:00
1 parent 5ef6f044c4
commit 6ac3d00116
3 files changed
+6 -3

No files matched your search

@@ -41,7 +41,7 @@ public class LayerTreeItemViewModel : TreeItemViewModel
copy.Id = Guid.NewGuid();
copy.Name = Layer.Parent.GetNewFolderName(copy.Name + " - copy");
Layer copied = new(Layer.Profile, Layer.Parent, copy);
Layer copied = new(Layer.Profile, Layer.Parent, copy, true);
ProfileEditorService.ExecuteCommand(new AddProfileElement(copied, Layer.Parent, Layer.Order - 1));
Layer.Profile.PopulateLeds(_rgbService.EnabledDevices);
}