Browse Source

【编辑工具】合并crash修复

lizhe 10 months ago
parent
commit
0e9aa03286

+ 8 - 8
PDF Office/PDF Master/Class/PDFTools/Merge/MergeNew/KMMergeWindowController.swift

@@ -122,14 +122,14 @@ extension KMMergeWindowController {
 //                    size = size + file.fileSize
 //                }
 //                
-                let file = KMFileAttribute()
-                file.filePath = openPanel.urls.first!.path
-                size = file.fileSize + size
-//                
-                if !IAPProductsManager.default().isAvailableAllFunction() && (files.count >= 2 || size > 20 * 1024 * 1024) {
-                    KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
-                    return
-                }
+//                let file = KMFileAttribute()
+//                file.filePath = openPanel.urls.first!.path
+//                size = file.fileSize + size
+////                
+//                if !IAPProductsManager.default().isAvailableAllFunction() && (files.count >= 2 || size > 20 * 1024 * 1024) {
+//                    KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
+//                    return
+//                }
                 
                 self.mergeView.addFilePaths(urls: array)
             }