Bladeren bron

Merge branch 'develop_PDFReaderProNew' of git.kdan.cc:Mac_PDF/PDF_Office into develop_PDFReaderProNew

tangchao 10 maanden geleden
bovenliggende
commit
2180d5f580
1 gewijzigde bestanden met toevoegingen van 15 en 0 verwijderingen
  1. 15 0
      PDF Office/PDF Master/Class/ChromiumTabs/KMBrowserWindowController.swift

+ 15 - 0
PDF Office/PDF Master/Class/ChromiumTabs/KMBrowserWindowController.swift

@@ -734,6 +734,21 @@ extension KMBrowserWindowController: NSMenuDelegate, NSMenuItemValidation {
         if action == #selector(pasteAsPlainText) {
             return document.isHome ? false : true
         }
+        if action == #selector(addWatermark) || action == #selector(templateWatermark) || action == #selector(removeWatermark) || action == #selector(batchAddWatermark) || action == #selector(batchRemoveWatermark) {
+            return document.isHome ? false : true
+        }
+        
+        if action == #selector(addBackground) || action == #selector(removeBackground) || action == #selector(batchAddBackground) || action == #selector(batchRemoveBackground) || action == #selector(templateBackground) {
+            return document.isHome ? false : true
+        }
+        
+        if action == #selector(addHeaderFooter) || action == #selector(removeHeaderFooter) || action == #selector(batchAddHeaderFooter) || action == #selector(batchRemoveHeaderFooter) || action == #selector(templateHeaderFooter) {
+            return document.isHome ? false : true
+        }
+        
+        if action == #selector(addHeaderFooterBates) || action == #selector(removeHeaderFooterBates) || action == #selector(batchAddBates) || action == #selector(batchRemoveBates) || action == #selector(templateBates) {
+            return document.isHome ? false : true
+        }
         
         return true
     }