Optimize remove server

pull/3165/head
2dust 2 years ago
parent 639a9fd540
commit 61f297215d

@ -905,12 +905,16 @@ 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();
Reload(); if (exists)
{
Reload();
}
} }
private void RemoveDuplicateServer() private void RemoveDuplicateServer()

Loading…
Cancel
Save