Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ea0bec1

Browse files
refactor: use control instead of DataContext to get input string
1 parent 0160600 commit ea0bec1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

‎src/Views/RevisionFiles.axaml.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,7 @@ private void OnSearchBoxKeyDown(object _, KeyEventArgs e)
155155

156156
private void OnSearchBoxTextChanged(object _, TextChangedEventArgs e)
157157
{
158-
var vm = DataContext as ViewModels.CommitDetail;
159-
if (vm == null)
160-
return;
161-
162-
if (string.IsNullOrEmpty(vm.RevisionFileSearchFilter))
158+
if (string.IsNullOrEmpty(TxtSearchRevisionFiles.Text))
163159
FileTree.SetSearchResult(null);
164160
}
165161

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /