1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-29 16:56:40 +03:00

GH-227 Apparently forgot to use the cache...

This commit is contained in:
Tae Won Ha 2016-09-25 18:51:30 +02:00
parent 411897bea8
commit 27cb880781
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -51,6 +51,10 @@ class FileItemService {
}
func icon(forUrl url: URL) -> NSImage? {
if let cached = self.iconsCache.object(forKey: url as NSURL) {
return cached
}
let path = url.path
let icon = workspace.icon(forFile: path)
icon.size = CGSize(width: 16, height: 16)