Skip to content

Commit

Permalink
Merge pull request #455 from Macro-Deck-App/fix-folder-delete
Browse files Browse the repository at this point in the history
Fix folder delete child folders
  • Loading branch information
manuelmayer-dev authored Oct 12, 2023
2 parents f244744 + a238526 commit 51f54e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MacroDeck/Profiles/ProfileManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 51f54e5

Please sign in to comment.