mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
Remove NSApp isOnMountainLionOrBetter helper
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user