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