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

GH-286 Guard against files which disappear fast

This commit is contained in:
Tae Won Ha 2016-10-04 23:34:02 +02:00
parent 63b8191366
commit aa2c55aae5
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -61,6 +61,10 @@ class FileBrowserComponent: ViewComponent, NSOutlineViewDataSource, NSOutlineVie
return
}
guard self.fileView.row(forItem: fileItem) > -1 else {
return
}
// NSLog("\(root) -> \(fileItem)")
DispatchUtils.gui {
self.fileView.reloadItem(fileItem, reloadChildren: true)