fix: don't copy tray image when it's set (#20904)

This commit is contained in:
Shelley Vohr 2019-11-02 15:14:44 -07:00 committed by GitHub
parent b194d5d0e2
commit ba47c9b925
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,12 +87,12 @@
}
- (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 {
@ -108,7 +108,7 @@
[[statusItem_ button]
setAttributedTitle:[title attributedStringParsingANSICodes]];
} else {
[[statusItem_ button] setTitle:[title copy]];
[[statusItem_ button] setTitle:title];
}
// Fix icon margins.