diff --git a/v2rayN/v2rayN/Forms/MainForm.cs b/v2rayN/v2rayN/Forms/MainForm.cs index 59f57478..79447b54 100644 --- a/v2rayN/v2rayN/Forms/MainForm.cs +++ b/v2rayN/v2rayN/Forms/MainForm.cs @@ -210,9 +210,9 @@ namespace v2rayN.Forms /// private void RefreshServersView() { - lvServers.BeginUpdate(); lvServers.Items.Clear(); + List lst = new List(); for (int k = 0; k < config.vmess.Count; k++) { string def = string.Empty; @@ -273,9 +273,9 @@ namespace v2rayN.Forms lvItem.Font = new Font(lvItem.Font, FontStyle.Bold); } - if (lvItem != null) lvServers.Items.Add(lvItem); + if (lvItem != null) lst.Add(lvItem); } - lvServers.EndUpdate(); + lvServers.Items.AddRange(lst.ToArray()); //if (lvServers.Items.Count > 0) //{