Browse Source

Do not change logic on highlighing

Cheng Zhao 7 years ago
parent
commit
0dc094fffc
1 changed files with 2 additions and 1 deletions
  1. 2 1
      atom/browser/ui/tray_icon_cocoa.mm

+ 2 - 1
atom/browser/ui/tray_icon_cocoa.mm

@@ -91,7 +91,8 @@ const CGFloat kVerticalTitleMargin = 2;
   CGFloat thickness = [[statusItem_ statusBar] thickness];
 
   // Draw the system bar background.
-  [statusItem_ drawStatusBarBackgroundInRect:self.bounds withHighlight:[self shouldHighlight]];
+  [statusItem_ drawStatusBarBackgroundInRect:self.bounds
+                               withHighlight:[self isHighlighted]];
 
   // Determine which image to use.
   NSImage* image = image_.get();