diff --git a/Telegram/SourceFiles/platform/mac/specific_mac_p.mm b/Telegram/SourceFiles/platform/mac/specific_mac_p.mm index eee9c89d6..e6a3b0058 100644 --- a/Telegram/SourceFiles/platform/mac/specific_mac_p.mm +++ b/Telegram/SourceFiles/platform/mac/specific_mac_p.mm @@ -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];