mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Fixing #37 by making even apps with scheduled checks check the first time they launch.
This commit is contained in:
1 parent
8fbfa3a46f
commit
fe44611e2b
1 file changed
+1
-1
+1
-1
@@ -110,7 +110,7 @@
|
||||
{
|
||||
NSTimeInterval interval = [self storedCheckInterval];
|
||||
NSDate *lastCheck = [[utilities standardBundleDefaults] objectForKey:SULastCheckTimeKey];
|
||||
if (!lastCheck) { lastCheck = [NSDate date]; }
|
||||
if (!lastCheck) { lastCheck = [NSDate distantPast]; }
|
||||
NSTimeInterval intervalSinceCheck = [[NSDate date] timeIntervalSinceDate:lastCheck];
|
||||
if (intervalSinceCheck < interval)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user