fix InvalidOperationException collection was modified (#27975)

This commit is contained in:
Davide Giacometti
2023-08-14 19:23:08 +02:00
committed by GitHub
parent 268614ccd9
commit 1d35263e4a

View File

@@ -40,7 +40,7 @@ namespace Microsoft.Plugin.WindowWalker.Components
/// <summary>
/// Gets the list of all open windows
/// </summary>
internal List<Window> Windows => windows;
internal List<Window> Windows => new List<Window>(windows);
/// <summary>
/// Gets an instance property of this class that makes sure that