Skip to content

Commit

Permalink
Merge pull request AvaloniaUI#9300 from AvaloniaUI/fixes/osx-menu-ree…
Browse files Browse the repository at this point in the history
…ntrancy-crash

OSX: fix menu re-entrancy crash
  • Loading branch information
maxkatz6 committed Oct 30, 2022
2 parents a35520c + 80288aa commit a64fcdd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions native/Avalonia.Native/src/OSX/AvnWindow.mm
Original file line number Diff line number Diff line change
Expand Up @@ -384,16 +384,14 @@ - (BOOL)windowShouldZoom:(NSWindow *_Nonnull)window toFrame:(NSRect)newFrame
return true;
}

-(void)resignKeyWindow
-(void)windowDidResignKey:(NSNotification *)notification
{
if(_parent)
_parent->BaseEvents->Deactivated();

[self showAppMenuOnly];

[self invalidateShadow];

[super resignKeyWindow];
}

- (void)windowDidMove:(NSNotification *_Nonnull)notification
Expand Down

0 comments on commit a64fcdd

Please sign in to comment.