Procházet zdrojové kódy

【综合】AI 重写、校对、翻译,光标键入无效(已修复)

tangchao před 11 měsíci
rodič
revize
233ca1643e

+ 3 - 0
PDF Office/PDF Master/Class/AIInfo/AIConfigWindowController/AIConfigWindowController.swift

@@ -210,6 +210,9 @@ import Cocoa
         
         self.fileEmptyTextView.backgroundColor = NSColor.clear
         self.fileEmptyTextView.delegate = self
+        self.fileEmptyTextView.isEditable = false
+        self.fileEmptyTextView.frame = (self.fileEmptyTextView.enclosingScrollView?.contentView.bounds) ?? .zero
+        self.fileEmptyTextView.autoresizingMask = [.width, .height]
         
         self.window?.makeFirstResponder(nil)
         

+ 8 - 8
PDF Office/PDF Master/Class/Home/ViewController/KMHomeViewController.swift

@@ -860,14 +860,14 @@ extension KMHomeViewController {
      
     
     func showAITypeChooseView() -> Void {
-        if AIInfoManager.default().aiInfo.infoDict.isEmpty == true {
-#if VERSION_DMG
-            KMPurchaseCompareWindowController.dmgPurchaseInstance().showWindow(nil)
-#else
-            AIPurchaseWindowController.currentWC().showWindow(nil)
-#endif
-            return
-        }
+//        if AIInfoManager.default().aiInfo.infoDict.isEmpty == true {
+//#if VERSION_DMG
+//            KMPurchaseCompareWindowController.dmgPurchaseInstance().showWindow(nil)
+//#else
+//            AIPurchaseWindowController.currentWC().showWindow(nil)
+//#endif
+//            return
+//        }
         let controller = NSViewController.init()
         let view = NSView.init()
         controller.view = view

+ 4 - 0
PDF Office/PDF Master/Class/README.md

@@ -30,6 +30,10 @@
 - 【首页快捷工具】
 * KMOCRPDFWindowController
 
+## AI
+- 概括 & 重写 & 校对 & 翻译
+* AIConfigWindowController 
+
 ## 合并
 * KMMergeWindowController