Skip to content

Commit

Permalink
新建节点, 编辑节点后, 列表显示操作过的节点
Browse files Browse the repository at this point in the history
  • Loading branch information
crazypeace committed Nov 30, 2024
1 parent 263a48c commit 0d1f55e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions v2rayN/Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,15 @@ private void ShowServerForm(int configType, int index)
RefreshServers();
LoadV2ray();
}

// 如果新建节点, 选择节点列表的末尾
if (index < 0)
{
index = lvServers.Items.Count - 1;
}
// 修改节点后, 让节点选中, 并显示在可见区域中
lvServers.Items[index].Selected = true;
lvServers.EnsureVisible(index);
}


Expand Down

0 comments on commit 0d1f55e

Please sign in to comment.