mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-23 09:09:28 +00:00
Extracted Help URL key to constants, added plugin repository key
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#import "MPAppDelegate.h"
|
||||
|
||||
#import "MPAutotypeDaemon.h"
|
||||
#import "MPConstants.h"
|
||||
#import "MPContextMenuHelper.h"
|
||||
#import "MPDockTileHelper.h"
|
||||
#import "MPDocument.h"
|
||||
@@ -45,7 +46,7 @@
|
||||
#import <Sparkle/Sparkle.h>
|
||||
|
||||
NSString *const MPDidChangeStoredKeyFilesSettings = @"com.hicknhack.macpass.MPDidChangeStoredKeyFilesSettings";
|
||||
NSString *const MPHelpURLKey = @"MPHelpURL";
|
||||
|
||||
@interface MPAppDelegate () {
|
||||
@private
|
||||
MPDockTileHelper *_dockTileHelper;
|
||||
@@ -241,7 +242,7 @@ NSString *const MPHelpURLKey = @"MPHelpURL";
|
||||
}
|
||||
|
||||
- (void)showHelp:(id)sender {
|
||||
NSString *urlString = [[NSBundle mainBundle] infoDictionary][MPHelpURLKey];
|
||||
NSString *urlString = NSBundle.mainBundle.infoDictionary[MPBundleHelpURLKey];
|
||||
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:urlString]];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user