From 48928613bf68a88cf2bd2460f26c1b24a8cf575b Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Sun, 1 May 2022 09:08:16 +0800 Subject: [PATCH] bug fix --- v2rayN/v2rayN/Forms/MainForm.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/v2rayN/v2rayN/Forms/MainForm.cs b/v2rayN/v2rayN/Forms/MainForm.cs index b0335833..6fbcf91e 100644 --- a/v2rayN/v2rayN/Forms/MainForm.cs +++ b/v2rayN/v2rayN/Forms/MainForm.cs @@ -1273,7 +1273,10 @@ namespace v2rayN.Forms mainMsgControl.DisplayToolStatus(config); - notifyMain.Icon = this.Icon = MainFormHandler.Instance.GetNotifyIcon(config, this.Icon); + this.BeginInvoke(new Action(() => + { + notifyMain.Icon = this.Icon = MainFormHandler.Instance.GetNotifyIcon(config, this.Icon); + })); } #endregion