فهرست منبع

【优化】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)
             }