فهرست منبع

处理bug 参考库为空库时 删除不掉

cxs 2 سال پیش
والد
کامیت
851ef0aa55
1فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 6 0
      OTSPartA_STDEditor/ReferenceLibrary.cs

+ 6 - 0
OTSPartA_STDEditor/ReferenceLibrary.cs

@@ -380,6 +380,12 @@ namespace OTSPartA_STDEditor
                 this.Text = this.Text.Split(' ')[0];
                 PropGrid.Refresh();
             }
+            else
+            {
+                ReferenceDictionary.Clear();
+                this.Text = this.Text.Split(' ')[0];
+                PropGrid.Refresh();
+            }
         }
 
         private void PropGrid_MouseClick(object sender, MouseEventArgs e)