Skip to content

Commit 5488013

Browse files
authored
Merge pull request #9326 from AvaloniaUI/fixes/osx-child-windows-cant-minimise
OSX: fix minimise button being disabled when either a parent or a dialog.
2 parents b572180 + 29d6efd commit 5488013

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
START_COM_CALL;
6464

6565
@autoreleasepool {
66-
_isDialog = isDialog;
66+
_isDialog = isDialog || _parent != nullptr;
6767

6868
WindowBaseImpl::Show(activate, isDialog);
6969

@@ -96,6 +96,8 @@
9696
auto cparent = dynamic_cast<WindowImpl *>(parent);
9797

9898
_parent = cparent;
99+
100+
_isDialog = _parent != nullptr;
99101

100102
if(_parent != nullptr && Window != nullptr){
101103
// If one tries to show a child window with a minimized parent window, then the parent window will be

0 commit comments

Comments
 (0)