Skip to content

Commit

Permalink
fix: tray title not inverting when highlighted (#13262)
Browse files Browse the repository at this point in the history
  • Loading branch information
trop[bot] authored and ckerr committed Jun 16, 2018
1 parent 311f7ac commit cfa2479
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions atom/browser/ui/tray_icon_cocoa.mm
Expand Up @@ -389,6 +389,11 @@ - (BOOL)performDragOperation:(id <NSDraggingInfo>)sender {
return YES;
}

- (void)setNeedsDisplay:(BOOL)display {
[self updateAttributedTitle];
[super setNeedsDisplay:display];
}

- (BOOL)shouldHighlight {
switch (highlight_mode_) {
case atom::TrayIcon::HighlightMode::ALWAYS:
Expand Down

0 comments on commit cfa2479

Please sign in to comment.