aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-04-02 14:32:23 +0000
committerrowanbeentje <rowan@beent.je>2010-04-02 14:32:23 +0000
commit65105b5a7cf72913ef0dbd6da41df7a19609d44a (patch)
tree2530bfa3781613427a85832885f38a622fdf4adf
parent0d5f9b24a86eb1bdfedf44731d2e5e6f9b9eb024 (diff)
downloadsequelpro-65105b5a7cf72913ef0dbd6da41df7a19609d44a.tar.gz
sequelpro-65105b5a7cf72913ef0dbd6da41df7a19609d44a.tar.bz2
sequelpro-65105b5a7cf72913ef0dbd6da41df7a19609d44a.zip
- Reset automatic software update (Sparkle) prefs so that users will be prompted for profile submission preference
-rw-r--r--Source/SPPreferenceController.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/SPPreferenceController.m b/Source/SPPreferenceController.m
index a960c555..3bbc42a2 100644
--- a/Source/SPPreferenceController.m
+++ b/Source/SPPreferenceController.m
@@ -303,6 +303,12 @@
[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"]) {
+ [prefs removeObjectForKey:@"SUEnableAutomaticChecks"];
+ [prefs removeObjectForKey:@"SUSendProfileInfo"];
+ }
+
// Update the prefs revision
[prefs setObject:[NSNumber numberWithInteger:currentVersionNumber] forKey:SPLastUsedVersion];
}