Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[FIX] Was trying to update via Sparkle on every Flash load. Bump to 1…

….5.1
  • Loading branch information...
commit 330c89e5706f64f5b0073be17112d5bb864ff8bf 1 parent f2e0796
@rentzsch authored
View
4 ClickToFlash.xcodeproj/project.pbxproj
@@ -492,7 +492,7 @@
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
GCC_WARN_SIGN_COMPARE = YES;
- PRODUCT_VERSION = 1.5;
+ PRODUCT_VERSION = 1.5.1;
WARNING_CFLAGS = "-Wall";
};
name = Debug;
@@ -505,7 +505,7 @@
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
GCC_WARN_SIGN_COMPARE = YES;
- PRODUCT_VERSION = 1.5;
+ PRODUCT_VERSION = 1.5.1;
WARNING_CFLAGS = "-Wall";
};
name = Release;
View
1  Plugin/Info-Plugin.plist
@@ -26,6 +26,7 @@
<string>CTFClickToFlashPlugin</string>
<key>SUFeedURL</key>
<string>http://rentzsch.github.com/clicktoflash/release_notes/appcast.xml</string>
+ <!--<string>http://rentzsch.github.com/clicktoflash/release_notes/appcast_distantfuture.xml</string>-->
<key>WebPluginDescription</key>
<string>Shockwave Flash 10.0 r22</string>
<key>WebPluginMIMETypes</key>
View
6 Plugin/SparkleManager.m
@@ -112,8 +112,12 @@ - (void)startAutomaticallyCheckingForUpdates {
SUUpdater *updater = [self _updater];
if (_canUpdate) {
if ([[CTFUserDefaultsController standardUserDefaults] boolForKey:sAutomaticallyCheckForUpdates]) {
- [updater checkForUpdatesInBackground];
[updater setAutomaticallyChecksForUpdates:YES];
+ static BOOL calledUpdaterApplicationDidFinishLaunching = NO;
+ if (!calledUpdaterApplicationDidFinishLaunching) {
+ calledUpdaterApplicationDidFinishLaunching = YES;
+ [updater applicationDidFinishLaunching:nil];
+ }
} else {
[updater setAutomaticallyChecksForUpdates:NO];
}
Please sign in to comment.
Something went wrong with that request. Please try again.