pull/690/head 3.15.1
2dust 2020-04-16 16:10:29 +08:00
parent b1814c246a
commit 2f65575fdf
2 changed files with 7 additions and 5 deletions

View File

@ -268,7 +268,6 @@ namespace v2rayN.Forms
if (lvItem != null) lvServers.Items.Add(lvItem); if (lvItem != null) lvServers.Items.Add(lvItem);
} }
lvServers.EnsureVisible(config.index);
lvServers.EndUpdate(); lvServers.EndUpdate();
//if (lvServers.Items.Count > 0) //if (lvServers.Items.Count > 0)
@ -1025,7 +1024,10 @@ namespace v2rayN.Forms
this.ShowInTaskbar = true; this.ShowInTaskbar = true;
//this.notifyIcon1.Visible = false; //this.notifyIcon1.Visible = false;
this.txtMsgBox.ScrollToCaret(); this.txtMsgBox.ScrollToCaret();
if (config.index >= 0 && config.index < lvServers.Items.Count)
{
lvServers.EnsureVisible(config.index); // workaround lvServers.EnsureVisible(config.index); // workaround
}
SetVisibleCore(true); SetVisibleCore(true);
} }

View File

@ -32,4 +32,4 @@ using System.Runtime.InteropServices;
// 方法是按如下所示使用“*”: // 方法是按如下所示使用“*”:
//[assembly: AssemblyVersion("1.0.*")] //[assembly: AssemblyVersion("1.0.*")]
//[assembly: AssemblyVersion("1.0.0")] //[assembly: AssemblyVersion("1.0.0")]
[assembly: AssemblyFileVersion("3.15")] [assembly: AssemblyFileVersion("3.15.1")]