Browse Source

Improve user experience

pull/2501/head^2
2dust 2 years ago
parent
commit
d582d4846e
  1. 18
      v2rayN/v2rayN/Forms/MainForm.cs

18
v2rayN/v2rayN/Forms/MainForm.cs

@ -932,7 +932,23 @@ namespace v2rayN.Forms
} }
if (ConfigHandler.SetDefaultServer(ref config, lstVmess[index]) == 0) if (ConfigHandler.SetDefaultServer(ref config, lstVmess[index]) == 0)
{ {
RefreshServers(); //RefreshServers();
for (int k = 0; k < lstVmess.Count; k++)
{
if (config.IsActiveNode(lstVmess[k]))
{
lvServers.Items[k].SubItems[0].Text = "√";
lvServers.Items[k].ForeColor = Color.DodgerBlue;
lvServers.Items[k].Font = new Font(lvServers.Font, FontStyle.Bold);
}
else
{
lvServers.Items[k].SubItems[0].Text = "";
lvServers.Items[k].ForeColor = lvServers.ForeColor;
lvServers.Items[k].Font = new Font(lvServers.Font, FontStyle.Regular);
}
}
RefreshServersMenu();
_ = LoadV2ray(); _ = LoadV2ray();
} }
return 0; return 0;

Loading…
Cancel
Save