Quellcode durchsuchen

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 vor 12 Jahren
Ursprung
Commit
5f952d0d30
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  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;