mirror of
https://github.com/transmission/transmission
synced 2025-02-02 20:43:51 +00:00
get the dock badging of completed torrents working finally...seems it was an undocumented Apple bug, so this gets around that
This commit is contained in:
parent
cc1394b1d6
commit
e52e736e91
1 changed files with 4 additions and 1 deletions
|
@ -80,8 +80,11 @@
|
|||
{
|
||||
fCompletedBadged = fCompleted;
|
||||
|
||||
//force image to reload - copy does not work
|
||||
NSSize iconSize = [fDockIcon size];
|
||||
[fDockIcon release];
|
||||
fDockIcon = [[NSImage imageNamed: @"NSApplicationIcon"] copy];
|
||||
fDockIcon = [[NSImage alloc] initWithSize: iconSize];
|
||||
[fDockIcon addRepresentation: [[NSImage imageNamed: @"NSApplicationIcon"] bestRepresentationForDevice: nil]];
|
||||
|
||||
if (fCompleted > 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue