Changeset 13413


Ignore:
Timestamp:
Jul 25, 2012, 12:48:50 PM (9 years ago)
Author:
livings124
Message:

#4964 Don't allow Mist notifications on >= 10.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/PrefsController.m

    r13380 r13413  
    134134       
    135135        //set built-in Growl
    136         [GrowlApplicationBridge setShouldUseBuiltInNotifications: [fDefaults boolForKey: @"DisplayNotifications"]];
     136        [GrowlApplicationBridge setShouldUseBuiltInNotifications: ![NSApp isOnMountainLionOrBetter] && [fDefaults boolForKey: @"DisplayNotifications"]];
    137137       
    138138        [self setAutoUpdateToBeta: nil];
     
    14641464        [fBuiltInGrowlButton setHidden: NO];
    14651465        [fGrowlAppButton setHidden: YES];
    1466         [fBuiltInGrowlButton setState: [fDefaults boolForKey: @"DisplayNotifications"]];
     1466       
     1467        const BOOL onMtLion = [NSApp isOnMountainLionOrBetter];
     1468        [fBuiltInGrowlButton setState: !onMtLion && [fDefaults boolForKey: @"DisplayNotifications"]];
     1469        [fBuiltInGrowlButton setEnabled: !onMtLion];
    14671470    }
    14681471}
Note: See TracChangeset for help on using the changeset viewer.