Browse Source

if the window is closed, we cannot become the key window.

pull/10431/head
Dan Walmsley 3 years ago
parent
commit
3de50b3baa
  1. 2
      native/Avalonia.Native/src/OSX/AvnWindow.mm

2
native/Avalonia.Native/src/OSX/AvnWindow.mm

@ -238,7 +238,7 @@
-(BOOL)canBecomeKeyWindow
{
if(_canBecomeKeyWindow)
if(_canBecomeKeyWindow && !_closed)
{
// If the window has a child window being shown as a dialog then don't allow it to become the key window.
auto parent = dynamic_cast<WindowImpl*>(_parent.getRaw());

Loading…
Cancel
Save