mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
get the app icon in the proper way, to avoid potential badging
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user