From 7ca99547b9b14eba97c822337674dfd45a12a4c5 Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 14 Feb 2016 13:18:32 -0500 Subject: [PATCH] Add note about default icon assumption potentially being off --- Sparkle/SUHost.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sparkle/SUHost.m b/Sparkle/SUHost.m index c49ba368..fb9cd940 100644 --- a/Sparkle/SUHost.m +++ b/Sparkle/SUHost.m @@ -158,6 +158,8 @@ NSImage *icon = [[NSImage alloc] initWithContentsOfFile:iconPath]; // Use a default icon if none is defined. if (!icon) { + // this asumption may not be correct (eg. even though we're not the main bundle, it could be still be a regular app) + // but still better than nothing if no icon was included BOOL isMainBundle = (self.bundle == [NSBundle mainBundle]); NSString *fileType = isMainBundle ? (__bridge NSString *)kUTTypeApplication : (__bridge NSString *)kUTTypeBundle;