浏览代码

Fix to Add option on JobDocuemntSEt Folder Tree

Kenric Nugteren 1 年之前
父节点
当前提交
98d982391b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      prs.desktop/Panels/Jobs/DocumentSets/JobDocumentSetFolderTree.cs

+ 1 - 1
prs.desktop/Panels/Jobs/DocumentSets/JobDocumentSetFolderTree.cs

@@ -26,7 +26,7 @@ public class JobDocumentSetFolderTree : DynamicTreeView<JobDocumentSetFolder>
 
     private void JobDocumentSetFolderTree_OnContextMenuOpening(CoreTreeNode node, ContextMenu menu)
     {
-        if(node.ID != CoreUtils.FullGuid)
+        if(node.ID != CoreUtils.FullGuid && Options.Contains(DynamicTreeOption.Add))
         {
             menu.AddItem("Add Child Folder", null, node, (n) => DoAddItem(n.ID,true));
         }