From 7d55af2101f529d075dd0db8bc924669758c6a9a Mon Sep 17 00:00:00 2001 From: ChsBuffer <33744752+chsbuffer@users.noreply.github.com> Date: Tue, 26 Jan 2021 00:54:59 +0800 Subject: [PATCH] Fix speed test caused lost status port info --- Netch/Forms/MainForm.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Netch/Forms/MainForm.cs b/Netch/Forms/MainForm.cs index b4607c61..4746be47 100644 --- a/Netch/Forms/MainForm.cs +++ b/Netch/Forms/MainForm.cs @@ -1076,8 +1076,6 @@ namespace Netch.Forms ControlButton.Enabled = true; ControlButton.Text = i18N.Translate("Stop"); - StatusTextAppend(StatusPortInfoText.Value); - ProfileGroupBox.Enabled = true; break; @@ -1173,12 +1171,10 @@ namespace Netch.Forms text ??= i18N.Translate(StateExtension.GetStatusString(State)); StatusLabel.Text = i18N.Translate("Status", ": ") + text; + if (_state == State.Started) + StatusLabel.Text += StatusPortInfoText.Value; } - public void StatusTextAppend(string text) - { - StatusLabel.Text += text; - } public void BandwidthState(bool state) { if (InvokeRequired)