Skip to content

Commit 6b87c09

Browse files
committed
Add confirmation before removing duplicate servers
2dust#8365
1 parent ecaac2a commit 6b87c09

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

v2rayN/ServiceLib/ViewModels/ProfilesViewModel.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,11 @@ public async Task RemoveServerAsync()
553553

554554
private async Task RemoveDuplicateServer()
555555
{
556+
if (await _updateView?.Invoke(EViewAction.ShowYesNo, null) == false)
557+
{
558+
return;
559+
}
560+
556561
var tuple = await ConfigHandler.DedupServerList(_config, _config.SubIndexId);
557562
if (tuple.Item1 > 0 || tuple.Item2 > 0)
558563
{

0 commit comments

Comments
 (0)