Skip to content

Commit

Permalink
Enable favicon loading for all URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
pjrobertson committed Jan 22, 2025
1 parent f5f207a commit f369e09
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions Quicksilver/Code-QuickStepCore/QSObject_URLHandling.m
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ - (BOOL)loadIconForObject:(QSObject *)object {
if (!urlString) return NO;

// For search URLs
if([object containsType:QSSearchURLType]) {
[self buildWebSearchIconForObject:object];
return YES;
}
// if([object containsType:QSSearchURLType]) {
// [self buildWebSearchIconForObject:object];
// return YES;
// }
//
// For images that are links on web pages
NSString *imageURL = [object objectForMeta:kQSObjectIconName];
if (imageURL) {
Expand All @@ -140,7 +140,15 @@ - (BOOL)loadIconForObject:(QSObject *)object {
return YES;
}
}
[object setRetainsIcon:YES];

[object setRetainsIcon:YES];
NSImage *favIcon = nil;
favIcon = [self getFavIcon:[object objectForType:QSURLType]];
if(favIcon) {
[object setIcon:favIcon];
return YES;
}

return NO;
}

Expand Down

0 comments on commit f369e09

Please sign in to comment.