Quellcode durchsuchen

【2025】【综合】显示AI模块

niehaoyu vor 2 Monaten
Ursprung
Commit
95aefac314

+ 0 - 3
PDF Office/KMComponentLibrary/KMComponentLibrary/View/GroupItem/ComponentGroup.swift

@@ -162,9 +162,6 @@ public class ComponentGroup: NSView, NibLoadable {
             self.windowVC.close()
         }
         let windowVC = ComponentGroupWindowController.init(windowNibName: "ComponentGroupWindowController")
-        if windowVC.window?.isVisible == true {
-            leftMouseDownAction()
-        }
         windowVC.window?.setFrame(screenRect, display: true)
         if let window = positioningView?.window {
             windowVC.window?.level = window.level + 1

+ 0 - 1
PDF Office/PDF Master/KMClass/KMPDFViewController/SideBar/KMPDFSideBarController.swift

@@ -115,7 +115,6 @@ class KMPDFSideBarController: NSViewController {
         annotationItem.setTarget(self, action: #selector(sidebarItemClicked(_ :)))
         aiToolItem.setTarget(self, action: #selector(sidebarItemClicked(_ :)))
         
-        aiToolItem.isHidden = true
     }
     
     

+ 1 - 1
PDF Office/PDF Master/KMClass/KMPDFViewController/Toolbar/Model/KMPDFToolbarManager.swift

@@ -526,7 +526,7 @@ class KMPDFToolbarManager: NSObject {
                                                   tools_compare_Overlay_Property]
             
             return[tools_OCR_Property, tools_merge_Property, tools_compress_Property, tools_compare_Property,
-                   tools_extractImage_Property, tools_TTS_Property, tools_batch_Property]
+                   tools_extractImage_Property, tools_TTS_Property, tools_batch_Property, tools_AITools_Property]
         }
         
         return []