Skip to content

Commit

Permalink
[FIX] Was trying to update via Sparkle on every Flash load. Bump to 1…
Browse files Browse the repository at this point in the history
….5.1
  • Loading branch information
rentzsch committed Sep 13, 2009
1 parent f2e0796 commit 330c89e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ClickToFlash.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
1 change: 1 addition & 0 deletions Plugin/Info-Plugin.plist
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
6 changes: 5 additions & 1 deletion Plugin/SparkleManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 330c89e

Please sign in to comment.