diff --git a/src/ViewModels/Repository.cs b/src/ViewModels/Repository.cs index 8038f333..1a9b9955 100644 --- a/src/ViewModels/Repository.cs +++ b/src/ViewModels/Repository.cs @@ -213,7 +213,12 @@ namespace SourceGit.ViewModels public bool OnlySearchCommitsInCurrentBranch { get => _onlySearchCommitsInCurrentBranch; - set => SetProperty(ref _onlySearchCommitsInCurrentBranch, value); + set + { + if (SetProperty(ref _onlySearchCommitsInCurrentBranch, value) && + !string.IsNullOrEmpty(_searchCommitFilter)) + StartSearchCommits(); + } } public int SearchCommitFilterType @@ -222,7 +227,12 @@ namespace SourceGit.ViewModels set { if (SetProperty(ref _searchCommitFilterType, value)) + { UpdateCurrentRevisionFilesForSearchSuggestion(); + + if (!string.IsNullOrEmpty(_searchCommitFilter)) + StartSearchCommits(); + } } }