Remove MainForm.State setter thread safety check

This commit is contained in:
ChsBuffer
2020-09-10 17:10:37 +08:00
parent a89efdb0d7
commit 9f4a974a3c

View File

@@ -23,13 +23,6 @@ namespace Netch.Forms
get => _state;
private set
{
if (InvokeRequired)
{
// TODO:使所有 State 赋值不在线程中执行然后移除此代码块
BeginInvoke(new Action(() => { State = value; }));
return;
}
void StartDisableItems(bool enabled)
{
ServerComboBox.Enabled =