From 7b2bd8876db7680b93b6f6aa16a7206ee08dbf49 Mon Sep 17 00:00:00 2001 From: YFdyh000 Date: Thu, 16 Apr 2020 08:40:23 +0800 Subject: [PATCH] lvServers.EnsureVisible --- v2rayN/v2rayN/Forms/MainForm.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/v2rayN/v2rayN/Forms/MainForm.cs b/v2rayN/v2rayN/Forms/MainForm.cs index dfbbfb94..ed086e2e 100644 --- a/v2rayN/v2rayN/Forms/MainForm.cs +++ b/v2rayN/v2rayN/Forms/MainForm.cs @@ -243,6 +243,7 @@ namespace v2rayN.Forms if (lvItem != null) lvServers.Items.Add(lvItem); } + lvServers.EnsureVisible(config.index); //if (lvServers.Items.Count > 0) //{ @@ -988,6 +989,7 @@ namespace v2rayN.Forms //this.notifyIcon1.Visible = false; this.ShowInTaskbar = true; this.txtMsgBox.ScrollToCaret(); + lvServers.EnsureVisible(config.index); // workaround SetVisibleCore(true); }