mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-25 21:07:20 -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)
|
private void OnSearchBoxTextChanged(object _, TextChangedEventArgs e)
|
||||||
{
|
{
|
||||||
var vm = DataContext as ViewModels.CommitDetail;
|
if (string.IsNullOrEmpty(TxtSearchRevisionFiles.Text))
|
||||||
if (vm == null)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(vm.RevisionFileSearchFilter))
|
|
||||||
FileTree.SetSearchResult(null);
|
FileTree.SetSearchResult(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue