From d5414813a8099947bd6a20a953587e15a651469c Mon Sep 17 00:00:00 2001 From: Nikita Tsukanov Date: Fri, 9 Nov 2018 21:49:45 +0300 Subject: [PATCH] Re-enable parent on WM_DESTROY --- src/Windows/Avalonia.Win32/WindowImpl.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Windows/Avalonia.Win32/WindowImpl.cs b/src/Windows/Avalonia.Win32/WindowImpl.cs index e4f15382ea..20e3164413 100644 --- a/src/Windows/Avalonia.Win32/WindowImpl.cs +++ b/src/Windows/Avalonia.Win32/WindowImpl.cs @@ -501,6 +501,11 @@ namespace Avalonia.Win32 //Remove root reference to this class, so unmanaged delegate can be collected s_instances.Remove(this); Closed?.Invoke(); + if (_parent != null) + { + _parent._disabledBy.Remove(this); + _parent.UpdateEnabled(); + } //Free other resources Dispose(); return IntPtr.Zero;