From d350225a1d9d79acfdb4e9f18424ab7b9d72ab35 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Wed, 25 Jul 2012 12:48:50 +0000 Subject: [PATCH] #4964 Don't allow Mist notifications on >= 10.8 --- macosx/PrefsController.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/macosx/PrefsController.m b/macosx/PrefsController.m index 15f12e9fc..b7bdf2fec 100644 --- a/macosx/PrefsController.m +++ b/macosx/PrefsController.m @@ -133,7 +133,7 @@ } //set built-in Growl - [GrowlApplicationBridge setShouldUseBuiltInNotifications: [fDefaults boolForKey: @"DisplayNotifications"]]; + [GrowlApplicationBridge setShouldUseBuiltInNotifications: ![NSApp isOnMountainLionOrBetter] && [fDefaults boolForKey: @"DisplayNotifications"]]; [self setAutoUpdateToBeta: nil]; } @@ -1463,7 +1463,10 @@ { [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]; } }