|
@@ -481,7 +481,7 @@ class KMPDFEditViewController: KMPDFThumbViewBaseController {
|
|
|
panel.canChooseFiles = false
|
|
|
panel.canChooseDirectories = true
|
|
|
panel.canCreateDirectories = true
|
|
|
- panel.beginSheetModal(for: (self.view.window)!) { response in
|
|
|
+ panel.beginSheetModal(for: NSWindow.currentWindow()) { response in
|
|
|
if (response == .cancel) {
|
|
|
return
|
|
|
}
|
|
@@ -522,6 +522,7 @@ class KMPDFEditViewController: KMPDFThumbViewBaseController {
|
|
|
}
|
|
|
}
|
|
|
self.hiddenProgressWindow()
|
|
|
+ self.km_endSheet()
|
|
|
if let _urlString = filepaths.first?.deletingLastPathComponent {
|
|
|
NSWorkspace.shared.activateFileViewerSelecting([URL(fileURLWithPath: _urlString)])
|
|
|
}
|