mirror of https://github.com/2dust/v2rayN
bug fix
parent
e2053d5a77
commit
eaf11c6998
|
@ -159,9 +159,17 @@ namespace v2rayN.Forms
|
|||
scServers.Panel2Collapsed = true;
|
||||
|
||||
if (!config.uiItem.mainLocation.IsEmpty)
|
||||
{
|
||||
if (config.uiItem.mainLocation.X >= SystemInformation.WorkingArea.Width
|
||||
|| config.uiItem.mainLocation.Y >= SystemInformation.WorkingArea.Height)
|
||||
{
|
||||
Location = new Point(0, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
Location = config.uiItem.mainLocation;
|
||||
}
|
||||
}
|
||||
if (!config.uiItem.mainSize.IsEmpty)
|
||||
{
|
||||
Width = config.uiItem.mainSize.Width;
|
||||
|
@ -289,11 +297,11 @@ namespace v2rayN.Forms
|
|||
|
||||
for (int k = 0; k < lstVmess.Count; k++)
|
||||
{
|
||||
string def = string.Empty;
|
||||
string def = (k + 1).ToString();
|
||||
VmessItem item = lstVmess[k];
|
||||
if (config.IsActiveNode(item))
|
||||
{
|
||||
def = "√";
|
||||
def = Global.CheckMark;
|
||||
}
|
||||
|
||||
ListViewItem lvItem = new ListViewItem(def);
|
||||
|
@ -943,13 +951,13 @@ namespace v2rayN.Forms
|
|||
{
|
||||
if (config.IsActiveNode(lstVmess[k]))
|
||||
{
|
||||
lvServers.Items[k].SubItems[0].Text = "√";
|
||||
lvServers.Items[k].SubItems[0].Text = Global.CheckMark;
|
||||
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].SubItems[0].Text = (k + 1).ToString();
|
||||
lvServers.Items[k].ForeColor = lvServers.ForeColor;
|
||||
lvServers.Items[k].Font = new Font(lvServers.Font, FontStyle.Regular);
|
||||
}
|
||||
|
|
|
@ -170,7 +170,7 @@ namespace v2rayN.Forms
|
|||
string def = string.Empty;
|
||||
if (config.routingIndex.Equals(k))
|
||||
{
|
||||
def = "√";
|
||||
def = Global.CheckMark;
|
||||
}
|
||||
|
||||
ListViewItem lvItem = new ListViewItem(def);
|
||||
|
|
|
@ -217,6 +217,7 @@ namespace v2rayN
|
|||
public static readonly List<string> domainMatchers = new List<string> { "linear", "mph", "" };
|
||||
public const string GrpcgunMode = "gun";
|
||||
public const string GrpcmultiMode = "multi";
|
||||
public const string CheckMark = "√";
|
||||
|
||||
#endregion
|
||||
|
||||
|
|
Loading…
Reference in New Issue