Skip to content

Commit 6ca6399

Browse files
committed
enhance: re-run searching after search option changes
1 parent b5000f9 commit 6ca6399

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/ViewModels/Repository.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,12 @@ public bool IsSearchLoadingVisible
213213
public bool OnlySearchCommitsInCurrentBranch
214214
{
215215
get => _onlySearchCommitsInCurrentBranch;
216-
set => SetProperty(ref _onlySearchCommitsInCurrentBranch, value);
216+
set
217+
{
218+
if (SetProperty(ref _onlySearchCommitsInCurrentBranch, value) &&
219+
!string.IsNullOrEmpty(_searchCommitFilter))
220+
StartSearchCommits();
221+
}
217222
}
218223

219224
public int SearchCommitFilterType
@@ -222,7 +227,12 @@ public int SearchCommitFilterType
222227
set
223228
{
224229
if (SetProperty(ref _searchCommitFilterType, value))
230+
{
225231
UpdateCurrentRevisionFilesForSearchSuggestion();
232+
233+
if (!string.IsNullOrEmpty(_searchCommitFilter))
234+
StartSearchCommits();
235+
}
226236
}
227237
}
228238

0 commit comments

Comments
 (0)