Browse Source

【综合】首页AI对话框优化,旋转功能调整

niehaoyu 6 tháng trước cách đây
mục cha
commit
fec553ebf9

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

@@ -889,8 +889,12 @@ extension KMHomeViewController {
                 windowVC.window?.becomeMain()
             }
         }
-
-        windowVC.window?.center()
+        if windowVC.window?.isVisible == true && windowVC.didSetOriginFrame == true {
+            
+        } else {
+            windowVC.window?.center()
+            windowVC.didSetOriginFrame = true
+        }
         windowVC.eventLabel = "AITools_Onboard"
         windowVC.showWindow(nil)
     }

+ 1 - 1
PDF Office/PDF Master/Class/PDFWindowController/ViewController/KMMainViewController+MenuAction.swift

@@ -1204,7 +1204,7 @@ extension KMMainViewController: KMSystemToolMenuProtocol {
             for index in 0 ... self.listView.document.pageCount - 1 {
                 let page: CPDFPage = self.listView.document.page(at: index)
                 let rotation = page.rotation
-                page.leftRotate()
+                page.rightRotate()
                 pageItems.append(KMThumbnailPageItem(page: page, rotate: page.rotation, oldRotate: rotation))
             }