mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
#4964 Don't allow Mist notifications on >= 10.8
This commit is contained in:
parent
53576bfa85
commit
d350225a1d
1 changed files with 5 additions and 2 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue