diff options
author | rowanbeentje <rowan@beent.je> | 2010-04-02 15:22:26 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-04-02 15:22:26 +0000 |
commit | d8373245efdb63f4f8a27bdc646053f7b939f2f2 (patch) | |
tree | 8f925fd763e3d431d99d44653cdf07492cbd0e84 /Source | |
parent | 65105b5a7cf72913ef0dbd6da41df7a19609d44a (diff) | |
download | sequelpro-d8373245efdb63f4f8a27bdc646053f7b939f2f2.tar.gz sequelpro-d8373245efdb63f4f8a27bdc646053f7b939f2f2.tar.bz2 sequelpro-d8373245efdb63f4f8a27bdc646053f7b939f2f2.zip |
- Initialise prefs controller before setting Sparkle delegate
- Move sparkle prefs reset from 2056 to 2057
- Tweak prefs key binding to the user preference stats enabled key rather than the overall Sparkle stats enabled key
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPAppController.m | 10 | ||||
-rw-r--r-- | Source/SPPreferenceController.m | 4 |
2 files changed, 8 insertions, 6 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m index 9fc4b7b1..f0d4c9bf 100644 --- a/Source/SPAppController.m +++ b/Source/SPAppController.m @@ -62,12 +62,14 @@ */ - (void)awakeFromNib { - // Set Sparkle delegate - [[SUUpdater sharedUpdater] setDelegate:self]; - + + // Set up the prefs controller prefsController = [[SPPreferenceController alloc] init]; aboutController = nil; - + + // Set Sparkle delegate + [[SUUpdater sharedUpdater] setDelegate:self]; + // Register SPAppController as services provider [NSApp setServicesProvider:self]; diff --git a/Source/SPPreferenceController.m b/Source/SPPreferenceController.m index 3bbc42a2..20173b32 100644 --- a/Source/SPPreferenceController.m +++ b/Source/SPPreferenceController.m @@ -303,8 +303,8 @@ [prefs removeObjectForKey:@"FetchCorrectRowCount"]; } - // For versions prior to r2056 (~0.9.8), reset the Sparkle prefs so the user is prompted about submitting information - if (recordedVersionNumber < 2056 && [prefs objectForKey:@"SUEnableAutomaticChecks"]) { + // For versions prior to r2057 (~0.9.8), reset the Sparkle prefs so the user is prompted about submitting information + if (recordedVersionNumber < 2057 && [prefs objectForKey:@"SUEnableAutomaticChecks"]) { [prefs removeObjectForKey:@"SUEnableAutomaticChecks"]; [prefs removeObjectForKey:@"SUSendProfileInfo"]; } |