Skip to content

Commit 330c89e

Browse files
committed
[FIX] Was trying to update via Sparkle on every Flash load. Bump to 1.5.1
1 parent f2e0796 commit 330c89e

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

ClickToFlash.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@
492492
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
493493
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
494494
GCC_WARN_SIGN_COMPARE = YES;
495-
PRODUCT_VERSION = 1.5;
495+
PRODUCT_VERSION = 1.5.1;
496496
WARNING_CFLAGS = "-Wall";
497497
};
498498
name = Debug;
@@ -505,7 +505,7 @@
505505
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
506506
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
507507
GCC_WARN_SIGN_COMPARE = YES;
508-
PRODUCT_VERSION = 1.5;
508+
PRODUCT_VERSION = 1.5.1;
509509
WARNING_CFLAGS = "-Wall";
510510
};
511511
name = Release;

Plugin/Info-Plugin.plist

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
<string>CTFClickToFlashPlugin</string>
2727
<key>SUFeedURL</key>
2828
<string>http://rentzsch.github.com/clicktoflash/release_notes/appcast.xml</string>
29+
<!--<string>http://rentzsch.github.com/clicktoflash/release_notes/appcast_distantfuture.xml</string>-->
2930
<key>WebPluginDescription</key>
3031
<string>Shockwave Flash 10.0 r22</string>
3132
<key>WebPluginMIMETypes</key>

Plugin/SparkleManager.m

+5-1
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,12 @@ - (void)startAutomaticallyCheckingForUpdates {
112112
SUUpdater *updater = [self _updater];
113113
if (_canUpdate) {
114114
if ([[CTFUserDefaultsController standardUserDefaults] boolForKey:sAutomaticallyCheckForUpdates]) {
115-
[updater checkForUpdatesInBackground];
116115
[updater setAutomaticallyChecksForUpdates:YES];
116+
static BOOL calledUpdaterApplicationDidFinishLaunching = NO;
117+
if (!calledUpdaterApplicationDidFinishLaunching) {
118+
calledUpdaterApplicationDidFinishLaunching = YES;
119+
[updater applicationDidFinishLaunching:nil];
120+
}
117121
} else {
118122
[updater setAutomaticallyChecksForUpdates:NO];
119123
}

0 commit comments

Comments
 (0)