mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-26 04:57:54 +00:00
Fix: sparkleBundle not calculated correctly when SUUpdater is subclassed by a class in a different bundle.
This commit is contained in:
1 parent
a7af6fb82d
commit
ff7966d96a
1 file changed
+1
-1
Vendored
+1
-1
@@ -83,7 +83,7 @@ static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaults
|
||||
self = [super init];
|
||||
if (bundle == nil) bundle = [NSBundle mainBundle];
|
||||
|
||||
self.sparkleBundle = [NSBundle bundleForClass:[self class]];
|
||||
self.sparkleBundle = [NSBundle bundleForClass:[SUUpdater class]];
|
||||
if (!self.sparkleBundle) {
|
||||
SULog(@"Error: SUUpdater can't find Sparkle.framework it belongs to");
|
||||
return nil;
|
||||
|
||||
Reference in new issue
Block a user