Skip to content

Commit cb56351

Browse files
maxkatz6danwalmsley
authored andcommitted
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.
1 parent 0af2a96 commit cb56351

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
@@ -62,7 +62,7 @@
6262
START_COM_CALL;
6363

6464
@autoreleasepool {
65-
_isDialog = isDialog;
65+
_isDialog = isDialog || _parent != nullptr;
6666

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

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

9999
_parent = cparent;
100+
101+
_isDialog = _parent != nullptr;
100102

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

0 commit comments

Comments
 (0)