Преглед на файлове

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