enhance: do not clear original history filters after checkout branch

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2025-08-29 10:09:09 +08:00
parent 6df077e7cc
commit 7e71ab2f2c
3 changed files with 3 additions and 4 deletions

View File

@@ -103,7 +103,7 @@ namespace SourceGit.ViewModels
var b = _repo.Branches.Find(x => x.IsLocal && x.Name == Branch);
if (b != null && _repo.HistoriesFilterMode == Models.FilterMode.Included)
_repo.SetBranchFilterMode(b, Models.FilterMode.Included, true, false);
_repo.SetBranchFilterMode(b, Models.FilterMode.Included, false, false);
_repo.MarkBranchesDirtyManually();
_repo.SetWatcherEnabled(true);

View File

@@ -107,7 +107,7 @@ namespace SourceGit.ViewModels
log.Complete();
if (_repo.HistoriesFilterMode == Models.FilterMode.Included)
_repo.SetBranchFilterMode(LocalBranch, Models.FilterMode.Included, true, false);
_repo.SetBranchFilterMode(LocalBranch, Models.FilterMode.Included, false, false);
_repo.MarkBranchesDirtyManually();
_repo.SetWatcherEnabled(true);

View File

@@ -221,8 +221,7 @@ namespace SourceGit.ViewModels
_repo.Settings.ExpandedBranchNodesInSideBar.Add(fake.FullName.Substring(0, folderEndIdx));
if (_repo.HistoriesFilterMode == Models.FilterMode.Included)
_repo.SetBranchFilterMode(fake, Models.FilterMode.Included, true, false);
_repo.SetBranchFilterMode(fake, Models.FilterMode.Included, false, false);
}
_repo.MarkBranchesDirtyManually();