mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-29 05:24:26 +00:00
Fixes 244767
Simple fix to a dumb mistake which prevented Sparkle from using the default application icon for bundles which didn't have one.
This commit is contained in:
1 parent
df0178e2de
commit
c7881dec35
1 file changed
+1
-1
@@ -53,7 +53,7 @@
|
||||
iconPath = [self pathForResource:[self objectForInfoDictionaryKey:@"CFBundleIconFile"] ofType: nil];
|
||||
NSImage *icon = [[[NSImage alloc] initWithContentsOfFile:iconPath] autorelease];
|
||||
// Use a default icon if none is defined.
|
||||
if (!icon) { [[NSWorkspace sharedWorkspace] iconForFileType:NSFileTypeForHFSTypeCode(kGenericApplicationIcon)]; }
|
||||
if (!icon) { icon = [NSImage imageNamed:@"NSDefaultApplicationIcon"]; }
|
||||
return icon;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user