mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
Control ModifierKey to Test Selected Server
This commit is contained in:
@@ -742,7 +742,14 @@ namespace Netch.Forms
|
||||
Enabled = false;
|
||||
StatusText(i18N.Translate("Testing"));
|
||||
|
||||
if (IsWaiting())
|
||||
if (!IsWaiting() || ModifierKeys == Keys.Control)
|
||||
{
|
||||
(ServerComboBox.SelectedItem as Server)?.Test();
|
||||
ServerComboBox.Refresh();
|
||||
Enabled = true;
|
||||
StatusText();
|
||||
}
|
||||
else
|
||||
{
|
||||
ServerHelper.DelayTestHelper.TestDelayFinished += OnTestDelayFinished;
|
||||
_ = Task.Run(ServerHelper.DelayTestHelper.TestAllDelay);
|
||||
@@ -756,13 +763,6 @@ namespace Netch.Forms
|
||||
StatusText();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
(ServerComboBox.SelectedItem as Server)?.Test();
|
||||
ServerComboBox.Refresh();
|
||||
Enabled = true;
|
||||
StatusText();
|
||||
}
|
||||
}
|
||||
|
||||
private void CopyLinkPictureBox_Click(object sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user