Browse Source
Merge branch 'master' into feature/ImageScaleMode
pull/1762/head^2
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
8 additions and
2 deletions
-
src/Avalonia.Controls/Window.cs
|
|
|
@ -302,17 +302,23 @@ namespace Avalonia.Controls |
|
|
|
|
|
|
|
internal void Close(bool ignoreCancel) |
|
|
|
{ |
|
|
|
bool close = true; |
|
|
|
|
|
|
|
try |
|
|
|
{ |
|
|
|
if (!ignoreCancel && HandleClosing()) |
|
|
|
{ |
|
|
|
close = false; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
finally |
|
|
|
{ |
|
|
|
PlatformImpl?.Dispose(); |
|
|
|
HandleClosed(); |
|
|
|
if (close) |
|
|
|
{ |
|
|
|
PlatformImpl?.Dispose(); |
|
|
|
HandleClosed(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|