Browse Source

When selecting the group function in the standard library editor, the right property bar is blocked

cxs 2 months ago
parent
commit
5734923523
1 changed files with 2 additions and 0 deletions
  1. 2 0
      OTSPartA_STDEditor/UI/STDRuleslist.cs

+ 2 - 0
OTSPartA_STDEditor/UI/STDRuleslist.cs

@@ -497,6 +497,7 @@ namespace OTSPartA_STDEditor
         }
         private void treeView_G_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
         {
+            m_MainForm.m_Attributes.Enabled = true;
             if (Predata!=null)
             {
                 m_MainForm.SaveDataOfSelRule(Predata.STDId);
@@ -506,6 +507,7 @@ namespace OTSPartA_STDEditor
                 m_MainForm.SetNull();
                 Predata = null;
                 treeView_G.SelectedNode = e.Node;
+                m_MainForm.m_Attributes.Enabled = false;
             }
             else
             {