mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02: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 {
|
||||
if (!Core::IsAppLaunched()) {
|
||||
return nil;
|
||||
}
|
||||
RpMenu* dockMenu = [[[RpMenu alloc] initWithTitle: @""] autorelease];
|
||||
[dockMenu setAutoenablesItems:false];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user