Procházet zdrojové kódy

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 před 12 roky
rodič
revize
5f952d0d30

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

@@ -569,7 +569,8 @@ static const NSInteger kFLEXObjectExplorerScopeIncludeInheritanceIndex = 1;
             break;
             break;
             
             
         case FLEXObjectExplorerSectionReferencingInstances:
         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;
             break;
     }
     }
     return numberOfRows;
     return numberOfRows;