diff options
author | rowanbeentje <rowan@beent.je> | 2012-12-16 18:39:55 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2012-12-16 18:39:55 +0000 |
commit | 0dc6bc96075af5a17f09598c6c179f32dd4cfda5 (patch) | |
tree | 1d48093b7919b8fe95ff825c73afa4603d50f429 /Source/SPPreferencesUpgrade.m | |
parent | 3cfe628ecc4b51ff2e1013f2260ef5f056db8b97 (diff) | |
download | sequelpro-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/SPPreferencesUpgrade.m')
-rw-r--r-- | Source/SPPreferencesUpgrade.m | 7 |
1 files changed, 4 insertions, 3 deletions
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; |