changeset 2119:34963d1e6f62

Mac: Fix notification fallback code for prior to Mojave but building for Mojave or later.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 23 Jun 2020 22:48:46 +0000
parents c3f088266bcd
children 3784795a1e94
files mac/dw.m
diffstat 1 files changed, 4 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/mac/dw.m	Tue Jun 23 21:36:54 2020 +0000
+++ b/mac/dw.m	Tue Jun 23 22:48:46 2020 +0000
@@ -1439,21 +1439,18 @@
         return NSTerminateCancel;
     return NSTerminateNow;
 }
+#ifdef BUILDING_FOR_MOUNTAIN_LION
 -(void)applicationDidFinishLaunching:(NSNotification *)aNotification
 {
 #ifdef BUILDING_FOR_MOJAVE
     if (@available(macOS 10.14, *)) {} else
-#else
-    {
-#ifdef BUILDING_FOR_MOUNTAIN_LION
+#endif
+    {
         NSUserNotificationCenter* unc = [NSUserNotificationCenter defaultUserNotificationCenter];
         unc.delegate = self;
-#endif
-    }
-#endif
+    }
     return;
 }
-#ifdef BUILDING_FOR_MOUNTAIN_LION
 -(BOOL)userNotificationCenter:(NSUserNotificationCenter *)center shouldPresentNotification:(NSUserNotification *)notification
 {
     return YES;