OS X: Overlay icons: Don't show if folder is not marked as being an oC folder

This commit is contained in:
Markus Goetz 2014-09-12 11:46:15 +02:00
Родитель 71516c480d
Коммит 0edd4d3c02
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -131,6 +131,10 @@ static ContentManager* sharedInstance = nil;
return res;
}
NSString* normalizedPath = [path decomposedStringWithCanonicalMapping];
if (![[RequestManager sharedInstance] isRegisteredPath:normalizedPath]) {
return [NSNumber numberWithInt:0];
}
NSNumber* result = [_fileNamesCache objectForKey:normalizedPath];
// NSLog(@"XXXXXXX Asking for icon for path %@ = %d",path, [result intValue]);