mirror of
https://github.com/transmission/transmission
synced 2025-03-11 22:52:53 +00:00
disable QuickLook on Snow Leopard, for now
This commit is contained in:
parent
88d6ad318a
commit
a8f7ef8a3a
1 changed files with 4 additions and 1 deletions
|
@ -146,7 +146,10 @@ QuickLookController * fQuickLookInstance = nil;
|
|||
|
||||
//load the QuickLook framework and set the delegate
|
||||
//animation types: 0 = none; 1 = fade; 2 = zoom
|
||||
fQuickLookAvailable = [[NSBundle bundleWithPath: @"/System/Library/PrivateFrameworks/QuickLookUI.framework"] load];
|
||||
//disable on Snow Leopard for now
|
||||
const NSInteger appKitVersionNumber10_5 = 949;
|
||||
fQuickLookAvailable = floor(NSAppKitVersionNumber) <= appKitVersionNumber10_5
|
||||
&& [[NSBundle bundleWithPath: @"/System/Library/PrivateFrameworks/QuickLookUI.framework"] load];
|
||||
if (fQuickLookAvailable)
|
||||
[[[QLPreviewPanel sharedPreviewPanel] windowController] setDelegate: self];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue