diff --git a/MacroDeck/Profiles/ProfileManager.cs b/MacroDeck/Profiles/ProfileManager.cs index 1a4d952f..02262670 100644 --- a/MacroDeck/Profiles/ProfileManager.cs +++ b/MacroDeck/Profiles/ProfileManager.cs @@ -313,7 +313,7 @@ public static void DeleteFolder(MacroDeckFolder folder, MacroDeckProfile macroDe MacroDeckServer.SetFolder(macroDeckClient, macroDeckProfile.Folders[0]); } - foreach (var child in folder.Childs.Select(childId => FindFolderById(childId, macroDeckProfile))) + foreach (var child in folder.Childs.Select(childId => FindFolderById(childId, macroDeckProfile)).ToArray()) { DeleteFolder(child, macroDeckProfile); }