mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
Fix crash in application Dock menu on macOS.
This commit is contained in:
@@ -200,6 +200,9 @@ ApplicationDelegate *_sharedDelegate = nil;
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (NSMenu *) applicationDockMenu:(NSApplication *)sender {
|
- (NSMenu *) applicationDockMenu:(NSApplication *)sender {
|
||||||
|
if (!Core::IsAppLaunched()) {
|
||||||
|
return nil;
|
||||||
|
}
|
||||||
RpMenu* dockMenu = [[[RpMenu alloc] initWithTitle: @""] autorelease];
|
RpMenu* dockMenu = [[[RpMenu alloc] initWithTitle: @""] autorelease];
|
||||||
[dockMenu setAutoenablesItems:false];
|
[dockMenu setAutoenablesItems:false];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user