From a23852604a230ed60bc7ec82f743c666f977256f Mon Sep 17 00:00:00 2001 From: Manuel Mayer Date: Thu, 12 Oct 2023 21:09:26 +0200 Subject: [PATCH] Fix folder delete child folders --- MacroDeck/Profiles/ProfileManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }