fix: don't copy tray image when it's set (#20904)
This commit is contained in:
parent
b194d5d0e2
commit
ba47c9b925
1 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue