mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 21:30:37 +08: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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user