aboutsummaryrefslogtreecommitdiffstats
path: root/notifier_darwin.m
diff options
context:
space:
mode:
Diffstat (limited to 'notifier_darwin.m')
-rw-r--r--notifier_darwin.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/notifier_darwin.m b/notifier_darwin.m
index 6e4c5ac..1baf885 100644
--- a/notifier_darwin.m
+++ b/notifier_darwin.m
@@ -33,7 +33,7 @@ static BOOL installFakeBundleIdentifierHook() {
@end
CFStringRef deliverNotification(CFStringRef titleRef, CFStringRef subtitleRef, CFStringRef messageRef, CFStringRef appIconURLStringRef,
- CFArrayRef actionsRef, CFStringRef bundleIDRef, CFStringRef groupIDRef, NSTimeInterval timeout) {
+ CFArrayRef actionsRef, CFStringRef bundleIDRef, CFStringRef groupIDRef, NSTimeInterval timeout, bool debug) {
if (bundleIDRef) {
_fakeBundleIdentifier = (NSString *)bundleIDRef;
@@ -71,7 +71,7 @@ CFStringRef deliverNotification(CFStringRef titleRef, CFStringRef subtitleRef, C
}
NSUserNotificationCenter *userNotificationCenter = [NSUserNotificationCenter defaultUserNotificationCenter];
- //NSLog(@"Deliver: %@", userNotification);
+ if (debug) NSLog(@"Deliver: %@", userNotification);
NotificationDelegate *delegate = [[NotificationDelegate alloc] init];
delegate.timeout = timeout;
delegate.uuid = uuid;