瀏覽代碼

【优化】Appcenter 问题修复 - PDF_Reader_Pro.KMBrowserWindowController.createPDFFromImage() -> ()

https://appcenter.ms/users/support-pdfreaderpro.com/apps/PDF-Reader-Pro-DMG/crashes/errors/2547662529u/overview
lizhe 2 月之前
父節點
當前提交
8882b1af20
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      PDF Office/PDF Master/Class/ChromiumTabs/KMBrowserWindowController.swift

+ 1 - 1
PDF Office/PDF Master/Class/ChromiumTabs/KMBrowserWindowController.swift

@@ -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)
             }