|
@@ -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
|
|
|
}
|