mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
refactor: use control instead of DataContext to get input string
This commit is contained in:
parent
0160600c75
commit
ea0bec16da
1 changed files with 1 additions and 5 deletions
|
@ -155,11 +155,7 @@ namespace SourceGit.Views
|
|||
|
||||
private void OnSearchBoxTextChanged(object _, TextChangedEventArgs e)
|
||||
{
|
||||
var vm = DataContext as ViewModels.CommitDetail;
|
||||
if (vm == null)
|
||||
return;
|
||||
|
||||
if (string.IsNullOrEmpty(vm.RevisionFileSearchFilter))
|
||||
if (string.IsNullOrEmpty(TxtSearchRevisionFiles.Text))
|
||||
FileTree.SetSearchResult(null);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue