mirror of https://github.com/2dust/v2rayN
Optimize remove server
parent
639a9fd540
commit
61f297215d
|
@ -905,13 +905,17 @@ namespace v2rayN.ViewModels
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
var exists = lstSelecteds.Exists(t => t.indexId == _config.indexId);
|
||||||
|
|
||||||
ConfigHandler.RemoveServer(_config, lstSelecteds);
|
ConfigHandler.RemoveServer(_config, lstSelecteds);
|
||||||
_noticeHandler?.Enqueue(ResUI.OperationSuccess);
|
_noticeHandler?.Enqueue(ResUI.OperationSuccess);
|
||||||
|
|
||||||
RefreshServers();
|
RefreshServers();
|
||||||
|
if (exists)
|
||||||
|
{
|
||||||
Reload();
|
Reload();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void RemoveDuplicateServer()
|
private void RemoveDuplicateServer()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue