aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-12-16 18:39:55 +0000
committerrowanbeentje <rowan@beent.je>2012-12-16 18:39:55 +0000
commit0dc6bc96075af5a17f09598c6c179f32dd4cfda5 (patch)
tree1d48093b7919b8fe95ff825c73afa4603d50f429 /Source
parent3cfe628ecc4b51ff2e1013f2260ef5f056db8b97 (diff)
downloadsequelpro-0dc6bc96075af5a17f09598c6c179f32dd4cfda5.tar.gz
sequelpro-0dc6bc96075af5a17f09598c6c179f32dd4cfda5.tar.bz2
sequelpro-0dc6bc96075af5a17f09598c6c179f32dd4cfda5.zip
- Display startup release notes (eg post-r3921) to not block startup, preventing duplicate "Help" menus - with thanks to Michaƫl Gallego and schlabberdog
Diffstat (limited to 'Source')
-rw-r--r--Source/SPPreferencesUpgrade.h2
-rw-r--r--Source/SPPreferencesUpgrade.m7
2 files changed, 5 insertions, 4 deletions
diff --git a/Source/SPPreferencesUpgrade.h b/Source/SPPreferencesUpgrade.h
index 71f6c956..e3de5cb7 100644
--- a/Source/SPPreferencesUpgrade.h
+++ b/Source/SPPreferencesUpgrade.h
@@ -42,6 +42,6 @@
void SPApplyRevisionChanges(void);
void SPMigrateConnectionFavoritesData(void);
void SPMigratePreferencesFromPreviousIdentifer(void);
-void SPShowPostMigrationReleaseNotes(NSArray *releaseNotes);
++ (void)showPostMigrationReleaseNotes:(NSArray *)releaseNotes;
@end
diff --git a/Source/SPPreferencesUpgrade.m b/Source/SPPreferencesUpgrade.m
index 63046ce6..3c709153 100644
--- a/Source/SPPreferencesUpgrade.m
+++ b/Source/SPPreferencesUpgrade.m
@@ -325,8 +325,9 @@ void SPApplyRevisionChanges(void)
[importantUpdateNotes addObject:NSLocalizedString(@"We've changed Sequel Pro's digital signature for GateKeeper compatibility; you'll have to allow access to your passwords again.", @"Short important release note for why password prompts may occur")];
}
- // Display any important release notes, if any
- SPShowPostMigrationReleaseNotes(importantUpdateNotes);
+ // Display any important release notes, if any. Call this after a slight delay to prevent double help
+ // menus - see http://www.cocoabuilder.com/archive/cocoa/6200-two-help-menus-why.html .
+ [SPPreferencesUpgrade performSelector:@selector(showPostMigrationReleaseNotes:) withObject:importantUpdateNotes afterDelay:0.1];
[importantUpdateNotes release];
// Update the prefs revision
@@ -430,7 +431,7 @@ void SPMigratePreferencesFromPreviousIdentifer(void)
/**
* Displays important release notes for a new revision.
*/
-void SPShowPostMigrationReleaseNotes(NSArray *releaseNotes)
++ (void)showPostMigrationReleaseNotes:(NSArray *)releaseNotes
{
if (![releaseNotes count]) {
return;