|
@@ -2461,7 +2461,8 @@ extension KMMainViewController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- let file: URL = (self.myDocument?.fileURL)!
|
|
|
|
|
|
+ guard let url = self.myDocument?.fileURL else { return }
|
|
|
|
+ let file: URL = url
|
|
if FileManager.default.fileExists(atPath: file.path) {
|
|
if FileManager.default.fileExists(atPath: file.path) {
|
|
NSWorkspace.shared.activateFileViewerSelecting([file])
|
|
NSWorkspace.shared.activateFileViewerSelecting([file])
|
|
}
|
|
}
|