]> granicus.if.org Git - transmission/commitdiff
#4964 Don't allow Mist notifications on >= 10.8
authorMitchell Livingston <livings124@transmissionbt.com>
Wed, 25 Jul 2012 12:48:50 +0000 (12:48 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Wed, 25 Jul 2012 12:48:50 +0000 (12:48 +0000)
macosx/PrefsController.m

index 15f12e9fc472ab3709af865aac043cd62957a354..b7bdf2fecfbd7eee3618340d628e45d3c1a85bd2 100644 (file)
         }
         
         //set built-in Growl
-        [GrowlApplicationBridge setShouldUseBuiltInNotifications: [fDefaults boolForKey: @"DisplayNotifications"]];
+        [GrowlApplicationBridge setShouldUseBuiltInNotifications: ![NSApp isOnMountainLionOrBetter] && [fDefaults boolForKey: @"DisplayNotifications"]];
         
         [self setAutoUpdateToBeta: nil];
     }
     {
         [fBuiltInGrowlButton setHidden: NO];
         [fGrowlAppButton setHidden: YES];
-        [fBuiltInGrowlButton setState: [fDefaults boolForKey: @"DisplayNotifications"]];
+        
+        const BOOL onMtLion = [NSApp isOnMountainLionOrBetter];
+        [fBuiltInGrowlButton setState: !onMtLion && [fDefaults boolForKey: @"DisplayNotifications"]];
+        [fBuiltInGrowlButton setEnabled: !onMtLion];
     }
 }