|
@@ -189,15 +189,15 @@ import Cocoa
|
|
|
|
|
|
//history
|
|
|
self.homeContentView.historyDidSelect = { [unowned self] view, item in
|
|
|
- self.openHistoryFilePath(url: item.filePath!)
|
|
|
+ self.openHistoryFilePath(url: item.url!)
|
|
|
}
|
|
|
|
|
|
self.homeContentView.historyRemoveFileAction = { [unowned self] view, item in
|
|
|
- self.historyFile(deleteDocuments: [item.filePath!])
|
|
|
+ self.historyFile(deleteDocuments: [ item.url!])
|
|
|
}
|
|
|
|
|
|
self.homeContentView.historyShowPathAction = { [unowned self] view, item in
|
|
|
- NSWorkspace.shared.open(item.filePath!.deletingLastPathComponent())
|
|
|
+ NSWorkspace.shared.open( item.url!.deletingLastPathComponent())
|
|
|
}
|
|
|
|
|
|
self.homeContentView.historyRemoveAllFileAction = { [unowned self] view in
|