mirror of
https://github.com/netchx/netch.git
synced 2026-05-11 23:45:06 +08:00
fix: MainForm Text reload got exception when increase profile count #389
This commit is contained in:
@@ -234,11 +234,12 @@ namespace Netch.Forms
|
|||||||
case ListControl _:
|
case ListControl _:
|
||||||
break;
|
break;
|
||||||
case Control c:
|
case Control c:
|
||||||
|
if (_mainFormText.ContainsKey(c.Name))
|
||||||
c.Text = ControlText(c.Name);
|
c.Text = ControlText(c.Name);
|
||||||
break;
|
break;
|
||||||
case ToolStripItem c:
|
case ToolStripItem c:
|
||||||
c.Text = ControlText(c.Name);
|
if (_mainFormText.ContainsKey(c.Name))
|
||||||
|
c.Text = ControlText(c.Name);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user