Skip to content

Commit

Permalink
Temporarily stop search from refreshing when the selected member changes
Browse files Browse the repository at this point in the history
fixes #307
  • Loading branch information
ElektroKill committed Mar 16, 2024
1 parent 2f150e6 commit c77fe9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dnSpy/dnSpy/Search/SearchService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ public IEnumerable<GuidObject> GetGuidObjects(GuidObjectsProviderArgs args) {
classificationFormatMap.ClassificationFormatMappingChanged += ClassificationFormatMap_ClassificationFormatMappingChanged;
searchSettings.PropertyChanged += SearchSettings_PropertyChanged;
documentTabService.DocumentTreeView.DocumentService.CollectionChanged += DocumentService_CollectionChanged;
documentTabService.DocumentTreeView.SelectionChanged += DocumentTreeView_SelectionChanged;
// TODO: This currently causes frequent refreshes since the SelectionChanged event gets fired twice when the selection changes.
// Once to remove the old selection and once to add the new selection.
// documentTabService.DocumentTreeView.SelectionChanged += DocumentTreeView_SelectionChanged;
documentTabService.DocumentModified += DocumentTabService_FileModified;

searchControl.SearchListBoxDoubleClick += (s, e) => FollowSelectedReference();
Expand Down

0 comments on commit c77fe9e

Please sign in to comment.