Skip to content

Commit bb6bf5d

Browse files
committed
Disable automaticallyNotifiesObservers of update properties
1 parent 241b4f6 commit bb6bf5d

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

Sparkle/SPUUpdater.m

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,11 @@ - (void)updateAutomaticCheckSettingChanged:(NSNotification *)notification
958958
return [NSSet setWithObject:@"updaterSettings.automaticallyChecksForUpdates"];
959959
}
960960

961+
+ (BOOL)automaticallyNotifiesObserversOfAutomaticallyChecksForUpdates
962+
{
963+
return NO;
964+
}
965+
961966
- (void)setAutomaticallyDownloadsUpdates:(BOOL)automaticallyUpdates
962967
{
963968
_updaterSettings.automaticallyDownloadsUpdates = automaticallyUpdates;
@@ -973,6 +978,11 @@ - (BOOL)automaticallyDownloadsUpdates
973978
return [NSSet setWithObject:@"updaterSettings.automaticallyDownloadsUpdates"];
974979
}
975980

981+
+ (BOOL)automaticallyNotifiesObserversOfAutomaticallyDownloadsUpdates
982+
{
983+
return NO;
984+
}
985+
976986
- (void)setFeedURL:(NSURL * _Nullable)feedURL
977987
{
978988
if (![NSThread isMainThread]) {
@@ -1100,6 +1110,11 @@ - (BOOL)sendsSystemProfile
11001110
return [NSSet setWithObject:@"updaterSettings.sendsSystemProfile"];
11011111
}
11021112

1113+
+ (BOOL)automaticallyNotifiesObserversOfSendsSystemProfile
1114+
{
1115+
return NO;
1116+
}
1117+
11031118
static NSString *escapeURLComponent(NSString *str) {
11041119
NSString *escapedString = [str stringByAddingPercentEncodingWithAllowedCharacters:NSCharacterSet.URLQueryAllowedCharacterSet];
11051120

@@ -1200,6 +1215,11 @@ - (NSTimeInterval)updateCheckInterval
12001215
return [NSSet setWithObject:@"updaterSettings.updateCheckInterval"];
12011216
}
12021217

1218+
+ (BOOL)automaticallyNotifiesObserversOfUpdateCheckInterval
1219+
{
1220+
return NO;
1221+
}
1222+
12031223
- (void)dealloc
12041224
{
12051225
if (_startedUpdater) {

Sparkle/SPUUpdaterSettings.m

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ - (void)setAutomaticallyChecksForUpdates:(BOOL)automaticallyCheckForUpdates
163163
}
164164
}
165165

166+
+ (BOOL)automaticallyNotifiesObserversOfAutomaticallyChecksForUpdates
167+
{
168+
return NO;
169+
}
170+
166171
- (NSTimeInterval)currentUpdateCheckInterval SPU_OBJC_DIRECT
167172
{
168173
// Find the stored check interval. User defaults override Info.plist.
@@ -189,6 +194,11 @@ - (void)setUpdateCheckInterval:(NSTimeInterval)updateCheckInterval
189194
}
190195
}
191196

197+
+ (BOOL)automaticallyNotifiesObserversOfUpdateCheckInterval
198+
{
199+
return NO;
200+
}
201+
192202
// For allowing automatic downloaded updates to be turned on or off
193203
- (NSNumber * _Nullable)allowsAutomaticUpdatesOption
194204
{
@@ -221,6 +231,11 @@ - (void)setAutomaticallyDownloadsUpdates:(BOOL)automaticallyDownloadsUpdates
221231
[self didChangeValueForKey:SUAutomaticallyDownloadsUpdatesKeyPath];
222232
}
223233

234+
+ (BOOL)automaticallyNotifiesObserversOfAutomaticallyDownloadsUpdates
235+
{
236+
return NO;
237+
}
238+
224239
- (BOOL)currentSendsSystemProfile SPU_OBJC_DIRECT
225240
{
226241
return [_host boolForKey:SUSendProfileInfoKey];
@@ -236,4 +251,9 @@ - (void)setSendsSystemProfile:(BOOL)sendsSystemProfile
236251
[self didChangeValueForKey:SUSendsSystemProfileKeyPath];
237252
}
238253

254+
+ (BOOL)automaticallyNotifiesObserversOfSendsSystemProfile
255+
{
256+
return NO;
257+
}
258+
239259
@end

0 commit comments

Comments
 (0)