Browse Source
Merge pull request #5801 from AvaloniaUI/fixes/osx-appmenu
[osx] if app only has an app menu and no window menu, ensure its appl…
pull/5818/head
Dan Walmsley
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
native/Avalonia.Native/src/OSX/window.mm
|
|
|
@ -1936,6 +1936,10 @@ NSArray* AllLoopModes = [NSArray arrayWithObjects: NSDefaultRunLoopMode, NSEvent |
|
|
|
|
|
|
|
[NSApp setMenu:_menu]; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
[self showAppMenuOnly]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
-(void) showAppMenuOnly |
|
|
|
|