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:
parent
411897bea8
commit
27cb880781
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user