From 004b84ceda1c6c09dc7627caa9263cb00bcdf735 Mon Sep 17 00:00:00 2001 From: ChsBuffer <33744752+chsbuffer@users.noreply.github.com> Date: Sat, 16 Jan 2021 22:40:05 +0800 Subject: [PATCH] Fix #498 --- Netch/Forms/MainForm.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Netch/Forms/MainForm.cs b/Netch/Forms/MainForm.cs index 63ce3a8f..6d51f661 100644 --- a/Netch/Forms/MainForm.cs +++ b/Netch/Forms/MainForm.cs @@ -1174,6 +1174,8 @@ namespace Netch.Forms } public void BandwidthState(bool state) { + if (InvokeRequired) + BeginInvoke(new Action(BandwidthState), state); UsedBandwidthLabel.Visible /*= UploadSpeedLabel.Visible*/ = DownloadSpeedLabel.Visible = state; }