|
@@ -1671,7 +1671,7 @@ extension KMBrowserWindowController: KMSystemViewMenuProtocol {
|
|
|
openPanel.allowedFileTypes = KMTools.imageExtensions
|
|
|
openPanel.allowsMultipleSelection = true
|
|
|
openPanel.message = NSLocalizedString("Select images to create a new document. To select multiple files press cmd ⌘ button on keyboard and click on the target files one by one.", comment: "")
|
|
|
- openPanel.beginSheetModal(for: NSApp.mainWindow!) { response in
|
|
|
+ openPanel.beginSheetModal(for: NSWindow.currentWindow()) { response in
|
|
|
if response == .OK {
|
|
|
self.creatPdfFromImg(urls: openPanel.urls)
|
|
|
}
|