From 6b87c09a96a6319f1bdd284b67134b2368507f73 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Sat, 22 Nov 2025 10:20:16 +0800 Subject: [PATCH] Add confirmation before removing duplicate servers https://github.com/2dust/v2rayN/issues/8365 --- v2rayN/ServiceLib/ViewModels/ProfilesViewModel.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/v2rayN/ServiceLib/ViewModels/ProfilesViewModel.cs b/v2rayN/ServiceLib/ViewModels/ProfilesViewModel.cs index a6bb2567..80461288 100644 --- a/v2rayN/ServiceLib/ViewModels/ProfilesViewModel.cs +++ b/v2rayN/ServiceLib/ViewModels/ProfilesViewModel.cs @@ -553,6 +553,11 @@ public class ProfilesViewModel : MyReactiveObject private async Task RemoveDuplicateServer() { + if (await _updateView?.Invoke(EViewAction.ShowYesNo, null) == false) + { + return; + } + var tuple = await ConfigHandler.DedupServerList(_config, _config.SubIndexId); if (tuple.Item1 > 0 || tuple.Item2 > 0) {