mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 11:44:59 +00:00
refactor: commit search (#256)
This commit is contained in:
parent
38c6c7713e
commit
6a8527a394
6 changed files with 37 additions and 20 deletions
|
@ -73,7 +73,7 @@ namespace SourceGit.Views
|
|||
{
|
||||
if (e.Key == Key.Enter)
|
||||
{
|
||||
if (DataContext is ViewModels.Repository repo)
|
||||
if (DataContext is ViewModels.Repository repo && !string.IsNullOrWhiteSpace(repo.SearchCommitFilter))
|
||||
repo.StartSearchCommits();
|
||||
|
||||
e.Handled = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue