mirror of
https://github.com/netchx/netch.git
synced 2026-05-11 23:45:06 +08:00
Remove MainForm.State setter thread safety check
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user