|
@@ -252,7 +252,6 @@ extension KMMergeWindowController {
|
|
// self.savePanelAccessoryViewController = savePanelAccessoryViewController;
|
|
// self.savePanelAccessoryViewController = savePanelAccessoryViewController;
|
|
savePanel.beginSheetModal(for: self.window!) { result in
|
|
savePanel.beginSheetModal(for: self.window!) { result in
|
|
if result == .OK {
|
|
if result == .OK {
|
|
- self.cancelAction?()
|
|
|
|
var outputSavePanel = savePanel.url?.path ?? ""
|
|
var outputSavePanel = savePanel.url?.path ?? ""
|
|
DispatchQueue.main.async {
|
|
DispatchQueue.main.async {
|
|
var success = false
|
|
var success = false
|
|
@@ -278,6 +277,7 @@ extension KMMergeWindowController {
|
|
alert.messageText = "\(String(describing: files.first?.filePath.lastPathComponent)) + \(NSLocalizedString("Failed to merge!", comment: ""))"
|
|
alert.messageText = "\(String(describing: files.first?.filePath.lastPathComponent)) + \(NSLocalizedString("Failed to merge!", comment: ""))"
|
|
alert.runModal()
|
|
alert.runModal()
|
|
}
|
|
}
|
|
|
|
+ self.cancelAction?()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -294,7 +294,6 @@ extension KMMergeWindowController {
|
|
// self.savePanelAccessoryViewController = savePanelAccessoryViewController;
|
|
// self.savePanelAccessoryViewController = savePanelAccessoryViewController;
|
|
savePanel.beginSheetModal(for: self.window!) { result in
|
|
savePanel.beginSheetModal(for: self.window!) { result in
|
|
if result == .OK {
|
|
if result == .OK {
|
|
- self.cancelAction?()
|
|
|
|
var outputSavePanel = savePanel.url?.path
|
|
var outputSavePanel = savePanel.url?.path
|
|
DispatchQueue.main.async {
|
|
DispatchQueue.main.async {
|
|
var success = self.oldPDFDocument.write(toFile: outputSavePanel!)
|
|
var success = self.oldPDFDocument.write(toFile: outputSavePanel!)
|
|
@@ -316,6 +315,7 @@ extension KMMergeWindowController {
|
|
alert.messageText = "\(String(describing: files.first?.filePath.lastPathComponent)) + \(NSLocalizedString("Failed to merge!", comment: ""))"
|
|
alert.messageText = "\(String(describing: files.first?.filePath.lastPathComponent)) + \(NSLocalizedString("Failed to merge!", comment: ""))"
|
|
alert.runModal()
|
|
alert.runModal()
|
|
}
|
|
}
|
|
|
|
+ self.cancelAction?()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|