Skip to content

Commit e244b95

Browse files
Simone ManganelliSimone Manganelli
authored andcommitted
unchecking 'automatically check for updates' only stopped the check on startup, not subsequent ones. oops. bug #268
1 parent e875596 commit e244b95

5 files changed

Lines changed: 134 additions & 201 deletions

File tree

Plugin/CTFWhitelistWindowController.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ extern NSString* kCTFCheckForUpdates;
1212
}
1313

1414
- (IBAction)checkForUpdates:(id)sender;
15+
- (IBAction)automaticallyCheckForUpdatesDidChange:(id)sender;
1516
- (IBAction)uninstallClickToFlash:(id)sender;
1617

1718
- (IBAction)cancelUninstall:(id)sender;

Plugin/CTFWhitelistWindowController.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ - (IBAction)checkForUpdates:(id)sender;
2929
[[SparkleManager sharedManager] checkForUpdates];
3030
}
3131

32+
- (IBAction)automaticallyCheckForUpdatesDidChange:(id)sender;
33+
{
34+
[[SparkleManager sharedManager] setAutomaticallyChecksForUpdates:[sender state]];
35+
}
36+
3237
- (NSString *)versionString
3338
{
3439
NSBundle *CTFBundle = [NSBundle bundleWithIdentifier:@"com.github.rentzsch.clicktoflash"];

0 commit comments

Comments
 (0)