|
@@ -180,6 +180,10 @@ extension KMMergeWindowController {
|
|
|
/*防止文件被地址变换后crash*/
|
|
|
guard let tDocument = PDFDocument(url: NSURL(fileURLWithPath: file.filePath) as URL) else {
|
|
|
print("文件不存在")
|
|
|
+ let alert = NSAlert.init()
|
|
|
+ alert.alertStyle = .critical
|
|
|
+ alert.messageText = "\(file.filePath.lastPathComponent) + \(NSLocalizedString("Failed to merge!", comment: ""))"
|
|
|
+ alert.runModal()
|
|
|
return
|
|
|
}
|
|
|
|