Browse Source

disable chrome buttons when child modal is open.

pull/8238/head
Dan Walmsley 4 years ago
parent
commit
dcc4dd8be3
  1. 11
      native/Avalonia.Native/src/OSX/AvnWindow.mm

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

@ -175,9 +175,10 @@
_isExtended = false;
#ifdef IS_NSPANEL
[self setCollectionBehavior:NSWindowCollectionBehaviorCanJoinAllSpaces|NSWindowCollectionBehaviorFullScreenAuxiliary];
#endif
if(self.isDialog)
{
[self setCollectionBehavior:NSWindowCollectionBehaviorCanJoinAllSpaces|NSWindowCollectionBehaviorFullScreenAuxiliary];
}
return self;
}
@ -259,6 +260,10 @@
-(void) setEnabled:(bool)enable
{
_isEnabled = enable;
[[self standardWindowButton:NSWindowCloseButton] setEnabled:enable];
[[self standardWindowButton:NSWindowMiniaturizeButton] setEnabled:enable];
[[self standardWindowButton:NSWindowZoomButton] setEnabled:enable];
}
-(void)becomeKeyWindow

Loading…
Cancel
Save