1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-17 17:26:39 +00:00

Do not use foreach while updating original enumerable

This commit is contained in:
WilliamWsyHK 2024-09-03 23:49:56 +08:00
parent ca59c3f499
commit 6082176d05

View file

@ -313,9 +313,9 @@ namespace Ryujinx.Ava.UI.ViewModels
public void DeleteAll() public void DeleteAll()
{ {
foreach (var mod in Mods) while (Mods.Count > 0)
{ {
Delete(mod); Delete(Mods[0]);
} }
Mods.Clear(); Mods.Clear();