Browse Source

禁止修改默认分组名称

cxs 3 months ago
parent
commit
a0963493fa
1 changed files with 7 additions and 0 deletions
  1. 7 0
      OTSPartA_STDEditor/UI/STDRuleslist.cs

+ 7 - 0
OTSPartA_STDEditor/UI/STDRuleslist.cs

@@ -821,8 +821,15 @@ namespace OTSPartA_STDEditor
         {
             if (treeView_G.SelectedNode != null)
             {
+                
                 if (treeView_G.SelectedNode.Level == 0)
                 {
+                    
+                    if (treeView_G.SelectedNode.Text == "Default")
+                {
+                        MessageBox.Show("默认组不能更改名称!", "Tip");
+                        return;
+                    }
                     treeView_G.SelectedNode.BeginEdit();
                 }
                 else