Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reinstate the 'load previews' preference (as a hidden preference) #843

Merged
merged 1 commit into from
Apr 26, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Quicksilver/Code-QuickStepCore/QSObject_FileHandling.m
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ -(void)previewIcon:(id)object {
LSCopyItemInfoForURL((CFURLRef) [NSURL fileURLWithPath:path] , kLSRequestBasicFlagsOnly, &infoRec);

// try preview icon
if (!theImage) {
if (!theImage && [[NSUserDefaults standardUserDefaults] boolForKey:@"QSLoadImagePreviews"]) {
// do preview icon loading in separate thread (using NSOperationQueue)
theImage = [NSImage imageWithPreviewOfFileAtPath:path ofSize:QSMaxIconSize asIcon:YES];
}
Expand All @@ -351,7 +351,7 @@ -(void)previewIcon:(id)object {
}

// try QS's own methods to generate a preview
if (!theImage) {
if (!theImage && [[NSUserDefaults standardUserDefaults] boolForKey:@"QSLoadImagePreviews"]) {
NSString *type = [manager typeOfFile:path];
if ([[NSImage imageUnfilteredFileTypes] containsObject:type])
theImage = [[[NSImage alloc] initWithContentsOfFile:path] autorelease];
Expand Down
6 changes: 4 additions & 2 deletions Quicksilver/Resources/QSDefaults.plist
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<integer>9</integer>
<key>Check for Update Frequency</key>
<integer>7</integer>
<key>Delay Before Quitting</key>
<true/>
<key>Delay Before Quitting</key>
<true/>
<key>QSAccentColor</key>
<data>BAt0eXBlZHN0cmVhbYED6IQBQISEhAdOU0NvbG9yAISECE5TT2JqZWN0AIWEAWMGhANAQECEhIQITlNTdHJpbmcBlIQBKwZTeXN0ZW2GhJaYFHNlbGVjdGVkQ29udHJvbENvbG9yhoSTlQOEAmZmAQGGhg==</data>
<key>QSActionAppReopenBehavior</key>
Expand Down Expand Up @@ -51,6 +51,8 @@
<string>QSBezelInterfaceController</string>
<key>QSFSBrowserMediators</key>
<string>com.apple.finder</string>
<key>QSLoadImagePreviews</key>
<true/>
<key>QSNotifiers</key>
<string>com.blacktree.Quicksilver</string>
<key>QSResultViewRowHeight</key>
Expand Down