Browse Source

dispatch bring to front parent when removing a child window.

pull/8211/head
Dan Walmsley 4 years ago
parent
commit
05be2056e8
  1. 5
      native/Avalonia.Native/src/OSX/WindowImpl.mm

5
native/Avalonia.Native/src/OSX/WindowImpl.mm

@ -100,6 +100,11 @@ HRESULT WindowImpl::SetParent(IAvnWindow *parent) {
if(_parent != nullptr)
{
_parent->_children.remove(this);
auto parent = _parent;
dispatch_async(dispatch_get_main_queue(), ^{
parent->BringToFront();
});
}
auto cparent = dynamic_cast<WindowImpl *>(parent);

Loading…
Cancel
Save