mirror of
https://github.com/transmission/transmission
synced 2025-02-20 13:16:53 +00:00
get the app icon in the proper way, to avoid potential badging
This commit is contained in:
parent
50f81de083
commit
ce1a10ab74
2 changed files with 3 additions and 6 deletions
|
@ -37,7 +37,7 @@
|
|||
{
|
||||
if ((self = [super init]))
|
||||
{
|
||||
fDockIcon = [[NSApp applicationIconImage] copy];
|
||||
fDockIcon = [NSImage imageNamed: @"NSApplicationIcon"];
|
||||
fBadge = [NSImage imageNamed: @"Badge"];
|
||||
fUploadBadge = [NSImage imageNamed: @"UploadBadge"];
|
||||
fDownloadBadge = [NSImage imageNamed: @"DownloadBadge"];
|
||||
|
@ -61,9 +61,7 @@
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
[fDockIcon release];
|
||||
[fAttributes release];
|
||||
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
{
|
||||
if ((self = [super initWithWindowNibName: name]))
|
||||
{
|
||||
fAppIcon = [[NSApp applicationIconImage] copy];
|
||||
fAppIcon = [NSImage imageNamed: @"NSApplicationIcon"];
|
||||
fDotGreen = [NSImage imageNamed: @"GreenDot.tiff"];
|
||||
fDotRed = [NSImage imageNamed: @"RedDot.tiff"];
|
||||
|
||||
|
@ -118,8 +118,7 @@
|
|||
[fPeers release];
|
||||
if (fFiles)
|
||||
[fFiles release];
|
||||
|
||||
[fAppIcon release];
|
||||
|
||||
[fFolderIcon release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue