Browse Source

Merge pull request #1788 from AvaloniaUI/fixes/windows-close-applicatio-exit-stuck-in-loop

Dont freeze if someone implements window close cancellation.
pull/1790/merge
Jumar Macato 8 years ago
committed by GitHub
parent
commit
ff702fb077
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Avalonia.Controls/WindowCollection.cs

4
src/Avalonia.Controls/WindowCollection.cs

@ -96,7 +96,7 @@ namespace Avalonia
{ {
while (_windows.Count > 0) while (_windows.Count > 0)
{ {
_windows[0].Close(); _windows[0].Close(true);
} }
} }
@ -131,4 +131,4 @@ namespace Avalonia
} }
} }
} }
} }

Loading…
Cancel
Save