Skip to content

Commit

Permalink
fix: don't copy tray image when it's set (#20935)
Browse files Browse the repository at this point in the history
  • Loading branch information
trop[bot] authored and MarshallOfSound committed Nov 4, 2019
1 parent d9068b7 commit 37c1df6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shell/browser/ui/tray_icon_cocoa.mm
Expand Up @@ -87,12 +87,12 @@ - (void)removeItem {
}

- (void)setImage:(NSImage*)image {
[[statusItem_ button] setImage:[image copy]];
[[statusItem_ button] setImage:image];
[self updateDimensions];
}

- (void)setAlternateImage:(NSImage*)image {
[[statusItem_ button] setAlternateImage:[image copy]];
[[statusItem_ button] setAlternateImage:image];
}

- (void)setIgnoreDoubleClickEvents:(BOOL)ignore {
Expand All @@ -108,7 +108,7 @@ - (void)setTitle:(NSString*)title {
[[statusItem_ button]
setAttributedTitle:[title attributedStringParsingANSICodes]];
} else {
[[statusItem_ button] setTitle:[title copy]];
[[statusItem_ button] setTitle:title];
}

// Fix icon margins.
Expand Down

0 comments on commit 37c1df6

Please sign in to comment.