From 9f4a974a3cda831bad6dabf8221b063b6845d1c3 Mon Sep 17 00:00:00 2001 From: ChsBuffer <33744752+chsbuffer@users.noreply.github.com> Date: Thu, 10 Sep 2020 17:10:37 +0800 Subject: [PATCH] Remove MainForm.State setter thread safety check --- Netch/Forms/MainForm.Status.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Netch/Forms/MainForm.Status.cs b/Netch/Forms/MainForm.Status.cs index bf860713..35596997 100644 --- a/Netch/Forms/MainForm.Status.cs +++ b/Netch/Forms/MainForm.Status.cs @@ -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 =