ソースを参照

【fix】【页面编辑】鼠标悬浮到左下角,还会显示帮助相关菜单

tangchao 5 ヶ月 前
コミット
b8224cb9d3

+ 9 - 0
PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/KMLeftSideViewController.swift

@@ -306,6 +306,15 @@ class KMLeftSideViewController: KMSideViewController {
         }
         self.leftView.helpButton.coverAction = { [weak self] button, action in
             if action == .enter {
+                let hasEnterPageEdit = self?.mainViewController?.hasEnterPageEdit() ?? false
+                if hasEnterPageEdit {
+                    return
+                }
+                let hasEnterRedact = self?.mainViewController?.hasEnterRedact() ?? false
+                if hasEnterRedact {
+                    return
+                }
+                
                 self?.userFbHanddler.showUserFbPopView(sender: button)
             }
         }