mirror of
https://github.com/transmission/transmission
synced 2025-02-05 22:12:11 +00:00
hopefully the dock amount-completed badging is more consistent
This commit is contained in:
parent
a283f4ffad
commit
f4439ee4bf
1 changed files with 5 additions and 3 deletions
|
@ -173,9 +173,11 @@
|
|||
//update dock badge
|
||||
if (baseChange || fSpeedBadge || speedChange)
|
||||
{
|
||||
[NSApp setApplicationIconImage: dockIcon ? dockIcon : fDockIcon];
|
||||
if (dockIcon)
|
||||
[dockIcon release];
|
||||
//copy to avoid badge not being cleared
|
||||
if (!dockIcon)
|
||||
dockIcon = [fDockIcon copy];
|
||||
[NSApp setApplicationIconImage: dockIcon];
|
||||
[dockIcon release];
|
||||
|
||||
fSpeedBadge = speedChange;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue