Browse Source

Re-enable parent on WM_DESTROY

pull/2091/head
Nikita Tsukanov 8 years ago
parent
commit
d5414813a8
  1. 5
      src/Windows/Avalonia.Win32/WindowImpl.cs

5
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;

Loading…
Cancel
Save