Skip to content

Commit

Permalink
Open home url when clicking on "newer version available" notification
Browse files Browse the repository at this point in the history
  • Loading branch information
codler committed Aug 14, 2012
1 parent cd64865 commit 26d62b6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Battery Time Remaining/AppDelegate.m
Expand Up @@ -339,6 +339,13 @@ - (BOOL)userNotificationCenter:(NSUserNotificationCenter *)center shouldPresentN
return YES;
}

- (void)userNotificationCenter:(NSUserNotificationCenter *)center didActivateNotification:(NSUserNotification *)notification
{
if ([[notification informativeText] isEqualToString:@"A newer version is available"]) {
[self openHomeUrl:nil];
}
}

#pragma mark - NSMenuDelegate methods

- (void)menuWillOpen:(NSMenu *)menu
Expand Down

0 comments on commit 26d62b6

Please sign in to comment.