From e1a874f7f8c8add3f96752d9e83d167d217deab5 Mon Sep 17 00:00:00 2001 From: JC-Chung <52159296+JC-Chung@users.noreply.github.com> Date: Tue, 14 Jul 2026 16:58:57 +0800 Subject: [PATCH] fix: remove history filter only on successful remote branch deletion --- src/ViewModels/DeleteBranch.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ViewModels/DeleteBranch.cs b/src/ViewModels/DeleteBranch.cs index 976e4f392..300441aa6 100644 --- a/src/ViewModels/DeleteBranch.cs +++ b/src/ViewModels/DeleteBranch.cs @@ -65,7 +65,8 @@ public override async Task Sure() else { succ = await DeleteRemoteBranchAsync(Target, log); - _repo.UIStates.RemoveHistoryFilter(Target.FullName, Models.FilterType.RemoteBranch); + if (succ) + _repo.UIStates.RemoveHistoryFilter(Target.FullName, Models.FilterType.RemoteBranch); } log.Complete();