fix: MainForm Text reload got exception when increase profile count #389

This commit is contained in:
ChsBuffer
2020-10-07 20:51:49 +08:00
parent 7e907eef6f
commit adcc6a75c9

View File

@@ -234,11 +234,12 @@ namespace Netch.Forms
case ListControl _:
break;
case Control c:
c.Text = ControlText(c.Name);
if (_mainFormText.ContainsKey(c.Name))
c.Text = ControlText(c.Name);
break;
case ToolStripItem c:
c.Text = ControlText(c.Name);
if (_mainFormText.ContainsKey(c.Name))
c.Text = ControlText(c.Name);
break;
}