mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
clear dock badge while quitting on Leopard
This commit is contained in:
parent
89c43d5c3e
commit
fa7a76bbf6
1 changed files with 6 additions and 2 deletions
|
@ -220,10 +220,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
//for quitting -- only needed by Tiger
|
||||
- (void) clearBadge
|
||||
{
|
||||
if (![NSApp isOnLeopardOrBetter])
|
||||
if ([NSApp isOnLeopardOrBetter])
|
||||
{
|
||||
[self clearCompleted];
|
||||
[[NSApp dockTile] setContentView: nil];
|
||||
}
|
||||
else
|
||||
{
|
||||
fSpeedBadge = NO;
|
||||
fCompleted = 0;
|
||||
|
|
Loading…
Reference in a new issue