mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 04:04:59 +00:00
fix: file suggestion popup did not show while searching commit by file path
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
471452646b
commit
2fc03025ee
1 changed files with 3 additions and 3 deletions
|
@ -321,7 +321,7 @@ namespace SourceGit.ViewModels
|
|||
set
|
||||
{
|
||||
if (SetProperty(ref _searchCommitFilter, value) &&
|
||||
_searchCommitFilterType == 3 &&
|
||||
_searchCommitFilterType == 4 &&
|
||||
!string.IsNullOrEmpty(value) &&
|
||||
value.Length >= 2 &&
|
||||
_revisionFiles.Count > 0)
|
||||
|
@ -2395,14 +2395,14 @@ namespace SourceGit.ViewModels
|
|||
{
|
||||
_revisionFiles.Clear();
|
||||
|
||||
if (_searchCommitFilterType == 3)
|
||||
if (_searchCommitFilterType == 4)
|
||||
{
|
||||
Task.Run(() =>
|
||||
{
|
||||
var files = new Commands.QueryRevisionFileNames(_fullpath, "HEAD").Result();
|
||||
Dispatcher.UIThread.Invoke(() =>
|
||||
{
|
||||
if (_searchCommitFilterType != 3)
|
||||
if (_searchCommitFilterType != 4)
|
||||
return;
|
||||
|
||||
_revisionFiles.AddRange(files);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue