mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
enhance: re-run searching after search option changes
This commit is contained in:
parent
b5000f920f
commit
6ca6399bd3
1 changed files with 11 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue