disable QuickLook button/menu item on 10.6
This commit is contained in:
parent
61caf165ab
commit
ebb40e2ab2
|
@ -3252,6 +3252,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
[item setTarget: self];
|
||||
[item setAction: @selector(toggleQuickLook:)];
|
||||
[item setAutovalidates: NO];
|
||||
[item setEnabled: [NSApp isOnSnowLeopardOrBetter]];
|
||||
|
||||
return item;
|
||||
}
|
||||
|
@ -3716,6 +3717,10 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
return YES;
|
||||
}
|
||||
|
||||
//quick look only works on 10.6
|
||||
if (action == @selector(toggleQuickLook:))
|
||||
return [NSApp isOnSnowLeopardOrBetter];
|
||||
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue