Просмотр исходного кода

Don’t show the “referring instances” section when searching.

There’s nothing to search for in this section. It’s always one row and the text doesn’t change.
Ryan Olson лет назад: 12
Родитель
Сommit
5f952d0d30
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      Classes/Object Explorers/FLEXObjectExplorerViewController.m

+ 2 - 1
Classes/Object Explorers/FLEXObjectExplorerViewController.m

@@ -569,7 +569,8 @@ static const NSInteger kFLEXObjectExplorerScopeIncludeInheritanceIndex = 1;
             break;
             
         case FLEXObjectExplorerSectionReferencingInstances:
-            numberOfRows = 1;
+            // Hide this section if there is fliter text since there's nothing searchable (only 1 row, always the same).
+            numberOfRows = [self.filterText length] == 0 ? 1 : 0;
             break;
     }
     return numberOfRows;