Skip to content

Commit

Permalink
link help menu item to github
Browse files Browse the repository at this point in the history
  • Loading branch information
zydeco committed Nov 5, 2016
1 parent f160975 commit 70a68f3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions TouchBarServer/AppDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
@property (weak, nonatomic) IBOutlet NSWindow *mainWindow;

- (IBAction)startServer:(id)sender;
- (IBAction)showHelp:(id)sender;

@end

5 changes: 5 additions & 0 deletions TouchBarServer/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ - (void)startServer:(id)sender {
}
}

- (void)showHelp:(id)sender {
NSURL *helpURL = [NSURL URLWithString:@"https://github.com/zydeco/TouchBarServer"];
[[NSWorkspace sharedWorkspace] openURL:helpURL];
}

- (void)applicationWillTerminate:(NSNotification *)aNotification {
if ([self touchBarAvailable]) {
DFRSetStatus(0);
Expand Down
2 changes: 1 addition & 1 deletion TouchBarServer/MainMenu.xib
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@
<items>
<menuItem title="TouchBarServer Help" keyEquivalent="?" id="FKE-Sm-Kum">
<connections>
<action selector="showHelp:" target="-1" id="y7X-2Q-9no"/>
<action selector="showHelp:" target="Voe-Tx-rLC" id="xvJ-78-Smc"/>
</connections>
</menuItem>
</items>
Expand Down

0 comments on commit 70a68f3

Please sign in to comment.