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

Fix compilation (due to RxSwift 4 update)

This commit is contained in:
Tae Won Ha 2017-11-10 19:48:11 +01:00
parent 0f8698e254
commit 49e42a946c
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -11,6 +11,7 @@ import PureLayout
class OpenQuicklyWindow: NSObject,
UiComponent,
NSWindowDelegate,
NSTextFieldDelegate,
NSTableViewDelegate, NSTableViewDataSource {
typealias StateType = AppState
@ -231,7 +232,9 @@ extension OpenQuicklyWindow {
@objc(tableView: viewForTableColumn:row:)
func tableView(_ tableView: NSTableView, viewFor _: NSTableColumn?, row: Int) -> NSView? {
let cachedCell = (tableView.makeView(withIdentifier: NSUserInterfaceItemIdentifier("file-view-row"), owner: self) as? ImageAndTextTableCell)?.reset()
let cachedCell = (tableView.makeView(
withIdentifier: NSUserInterfaceItemIdentifier("file-view-row"), owner: self) as? ImageAndTextTableCell
)?.reset()
let cell = cachedCell ?? ImageAndTextTableCell(withIdentifier: "file-view-row")
let url = self.fileViewItems[row].url