mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-24 06:24:14 +00:00
Do not use foreach while updating original enumerable
This commit is contained in:
parent
ca59c3f499
commit
6082176d05
1 changed files with 2 additions and 2 deletions
|
@ -313,9 +313,9 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||
|
||||
public void DeleteAll()
|
||||
{
|
||||
foreach (var mod in Mods)
|
||||
while (Mods.Count > 0)
|
||||
{
|
||||
Delete(mod);
|
||||
Delete(Mods[0]);
|
||||
}
|
||||
|
||||
Mods.Clear();
|
||||
|
|
Loading…
Reference in a new issue