mirror of
https://github.com/2dust/v2rayN.git
synced 2025-10-26 18:24:43 +00:00
fix: 修复选中服务器->测速 后,当前服务器会丢失选中的情况
在客户端选中一个服务器->测速时,SelectedProfile会变为null,导致被视为没有选中服务器,会影响右键菜单以及快捷键的操作 例如ctrl+p后按enter,无法设置为活动服务器,反而会跳转到下一行
This commit is contained in:
parent
3ab992f5fb
commit
a907b16070
1 changed files with 3 additions and 2 deletions
|
|
@ -556,8 +556,8 @@ namespace v2rayN.ViewModels
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
SpeedProxyDisplay = string.Format("{0}:{1}/s¡ü | {2}/s¡ý", Global.agentTag, Utils.HumanFy(update.proxyUp), Utils.HumanFy(update.proxyDown));
|
SpeedProxyDisplay = string.Format("{0}:{1}/s¡ü | {2}/s¡ý", Global.agentTag, Utils.HumanFy(update.proxyUp), Utils.HumanFy(update.proxyDown));
|
||||||
SpeedDirectDisplay = string.Format("{0}:{1}/s¡ü | {2}/s¡ý", Global.directTag, Utils.HumanFy(update.directUp), Utils.HumanFy(update.directDown));
|
SpeedDirectDisplay = string.Format("{0}:{1}/s¡ü | {2}/s¡ý", Global.directTag, Utils.HumanFy(update.directUp), Utils.HumanFy(update.directDown));
|
||||||
|
|
||||||
if (update.proxyUp + update.proxyDown > 0)
|
if (update.proxyUp + update.proxyDown > 0)
|
||||||
{
|
{
|
||||||
|
|
@ -621,6 +621,7 @@ namespace v2rayN.ViewModels
|
||||||
item.speedVal = $"{speed} {Global.SpeedUnit}";
|
item.speedVal = $"{speed} {Global.SpeedUnit}";
|
||||||
}
|
}
|
||||||
_profileItems.Replace(item, Utils.DeepCopy(item));
|
_profileItems.Replace(item, Utils.DeepCopy(item));
|
||||||
|
SelectedProfile = item;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue