From 881536b8f58fcff84b4d1d58e470d7a630d5f5e4 Mon Sep 17 00:00:00 2001 From: Matt Sieren Date: Sun, 20 Dec 2015 19:05:39 +0100 Subject: [PATCH] Show App Window when Notification clicked Show the Application Window when a notification is clicked. --- WhatsMac/AppDelegate.m | 1 + 1 file changed, 1 insertion(+) diff --git a/WhatsMac/AppDelegate.m b/WhatsMac/AppDelegate.m index d299a32..c934097 100644 --- a/WhatsMac/AppDelegate.m +++ b/WhatsMac/AppDelegate.m @@ -374,6 +374,7 @@ - (void)userNotificationCenter:(NSUserNotificationCenter *)center didActivateNot [NSString stringWithFormat:@"openChat(\"%@\")", notification.identifier] completionHandler:nil]; [center removeDeliveredNotification:notification]; + [self showAppWindow:nil]; } - (void)webView:(WKWebView *)webView runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(void))completionHandler {