From 954b14571f2da56400a5648d29ea98b1514fc378 Mon Sep 17 00:00:00 2001 From: michael starke Date: Thu, 26 Feb 2015 12:55:28 +0100 Subject: [PATCH] Fixes #318: Help now opens the github project page for MacPass --- MacPass/Base.lproj/MainMenu.xib | 4 ++-- MacPass/MPAppDelegate.h | 1 + MacPass/MPAppDelegate.m | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/MacPass/Base.lproj/MainMenu.xib b/MacPass/Base.lproj/MainMenu.xib index 4aa05e8f..1905c94f 100644 --- a/MacPass/Base.lproj/MainMenu.xib +++ b/MacPass/Base.lproj/MainMenu.xib @@ -1,5 +1,5 @@ - + @@ -306,7 +306,7 @@ - + diff --git a/MacPass/MPAppDelegate.h b/MacPass/MPAppDelegate.h index 064dc769..815c24bd 100644 --- a/MacPass/MPAppDelegate.h +++ b/MacPass/MPAppDelegate.h @@ -38,6 +38,7 @@ APPKIT_EXTERN NSString *const MPDidChangeStoredKeyFilesSettings; - (IBAction)showPasswordCreator:(id)sender; - (IBAction)createNewDatabase:(id)sender; - (IBAction)openDatabase:(id)sender; +- (IBAction)showHelp:(id)sender; /** * Clears the stored key files for any documents. * @param sender sender of this action diff --git a/MacPass/MPAppDelegate.m b/MacPass/MPAppDelegate.m index 02838738..27b16534 100644 --- a/MacPass/MPAppDelegate.m +++ b/MacPass/MPAppDelegate.m @@ -224,6 +224,9 @@ NSString *const MPDidChangeStoredKeyFilesSettings = @"com.hicknhack.macpass.MPDi [[NSUserDefaults standardUserDefaults] removeObjectForKey:kMPSettingsKeyRememeberdKeysForDatabases]; } +- (void)showHelp:(id)sender { + [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"https://github.com/mstarke/MacPass"]]; +} #pragma mark - #pragma mark Private Helper