enhance: do NOT show search suggestion if input string is empty (#775)
Some checks failed
Continuous Integration / Build (push) Waiting to run
Continuous Integration / Prepare version string (push) Waiting to run
Continuous Integration / Package (push) Blocked by required conditions
Localization Check / localization-check (push) Has been cancelled

This commit is contained in:
leo 2024-12-02 21:50:50 +08:00
parent a52977baf3
commit d1a1b4b2b9
No known key found for this signature in database

View file

@ -137,7 +137,9 @@ namespace SourceGit.ViewModels
{ {
_revisionFiles.Clear(); _revisionFiles.Clear();
_revisionFiles.AddRange(files); _revisionFiles.AddRange(files);
UpdateRevisionFileSearchSuggestion();
if (!string.IsNullOrEmpty(_revisionFileSearchFilter))
UpdateRevisionFileSearchSuggestion();
} }
}); });
}); });