Skip to content

Commit 83df6c7

Browse files
committed
Hide notification on content click
1 parent dbf04fc commit 83df6c7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

GitHubListener/AppDelegate.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCent
9191
case .contentsClicked:
9292
if let url = URL(string: notification.userInfo!["url"] as! String) {
9393
NSWorkspace.shared.open(url)
94+
nc.removeDeliveredNotification(notification)
9495
}
9596
case .actionButtonClicked:
9697
notification.deliveryDate = Date(timeIntervalSinceNow: 60)

0 commit comments

Comments
 (0)