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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
src/Avalonia.Controls/WindowCollection.cs
|
|
|
@ -96,7 +96,7 @@ namespace Avalonia |
|
|
|
{ |
|
|
|
while (_windows.Count > 0) |
|
|
|
{ |
|
|
|
_windows[0].Close(); |
|
|
|
_windows[0].Close(true); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -131,4 +131,4 @@ namespace Avalonia |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|