mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 12:15:00 +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
|
set
|
||||||
{
|
{
|
||||||
if (SetProperty(ref _searchCommitFilter, value) &&
|
if (SetProperty(ref _searchCommitFilter, value) &&
|
||||||
_searchCommitFilterType == 3 &&
|
_searchCommitFilterType == 4 &&
|
||||||
!string.IsNullOrEmpty(value) &&
|
!string.IsNullOrEmpty(value) &&
|
||||||
value.Length >= 2 &&
|
value.Length >= 2 &&
|
||||||
_revisionFiles.Count > 0)
|
_revisionFiles.Count > 0)
|
||||||
|
@ -2395,14 +2395,14 @@ namespace SourceGit.ViewModels
|
||||||
{
|
{
|
||||||
_revisionFiles.Clear();
|
_revisionFiles.Clear();
|
||||||
|
|
||||||
if (_searchCommitFilterType == 3)
|
if (_searchCommitFilterType == 4)
|
||||||
{
|
{
|
||||||
Task.Run(() =>
|
Task.Run(() =>
|
||||||
{
|
{
|
||||||
var files = new Commands.QueryRevisionFileNames(_fullpath, "HEAD").Result();
|
var files = new Commands.QueryRevisionFileNames(_fullpath, "HEAD").Result();
|
||||||
Dispatcher.UIThread.Invoke(() =>
|
Dispatcher.UIThread.Invoke(() =>
|
||||||
{
|
{
|
||||||
if (_searchCommitFilterType != 3)
|
if (_searchCommitFilterType != 4)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
_revisionFiles.AddRange(files);
|
_revisionFiles.AddRange(files);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue