Browse Source

Fixed an issue that windows empty Win32 window would show when changing properties (#13097)

Co-authored-by: Max Katz <maxkatz6@outlook.com>
pull/13106/head
Lighto 2 years ago
committed by GitHub
parent
commit
cfca90cfca
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Windows/Avalonia.Win32/WindowImpl.cs

2
src/Windows/Avalonia.Win32/WindowImpl.cs

@ -1409,7 +1409,7 @@ namespace Avalonia.Win32
}
// Ensure window state if decorations change
if (oldProperties.Decorations != newProperties.Decorations)
if (_shown && oldProperties.Decorations != newProperties.Decorations)
ShowWindow(WindowState, false);
}

Loading…
Cancel
Save