diff --git a/atom/browser/ui/tray_icon_cocoa.mm b/atom/browser/ui/tray_icon_cocoa.mm index 0487e07ea014..2c434d7a9e31 100644 --- a/atom/browser/ui/tray_icon_cocoa.mm +++ b/atom/browser/ui/tray_icon_cocoa.mm @@ -403,6 +403,11 @@ const CGFloat kVerticalTitleMargin = 2; return YES; } +- (void)setNeedsDisplay:(BOOL)display { + [self updateAttributedTitle]; + [super setNeedsDisplay:display]; +} + - (BOOL)shouldHighlight { switch (highlight_mode_) { case atom::TrayIcon::HighlightMode::ALWAYS: