Remove NSApp isOnMountainLionOrBetter helper

This commit is contained in:
Mike Gelfand
2017-02-05 22:29:20 +03:00
parent fa504fb27f
commit 5e18ddbca8
7 changed files with 87 additions and 190 deletions

View File

@@ -134,7 +134,7 @@
}
//set built-in Growl
[GrowlApplicationBridge setShouldUseBuiltInNotifications: ![NSApp isOnMountainLionOrBetter] && [fDefaults boolForKey: @"DisplayNotifications"]];
[GrowlApplicationBridge setShouldUseBuiltInNotifications: NO];
[self setAutoUpdateToBeta: nil];
}
@@ -1504,7 +1504,7 @@
[fGrowlAppButton setTarget: self];
[fGrowlAppButton setAction: @selector(openGrowlApp:)];
}
else if ([NSApp isOnMountainLionOrBetter])
else
{
[fBuiltInGrowlButton setHidden: YES];
[fGrowlAppButton setHidden: NO];
@@ -1516,13 +1516,6 @@
[fGrowlAppButton setTarget: self];
[fGrowlAppButton setAction: @selector(openNotificationSystemPrefs:)];
}
else
{
[fBuiltInGrowlButton setHidden: NO];
[fGrowlAppButton setHidden: YES];
[fBuiltInGrowlButton setState: [fDefaults boolForKey: @"DisplayNotifications"]];
}
}
static NSString * getOSStatusDescription(OSStatus errorCode)