Library/PackageCache/com.unity.quicksearch@1.6.0-preview.8/Editor/QuickSearch.cs
/// <summary>
/// Re-fetch the search results and refresh the UI.
/// </summary>
Re-fetch the search results and refresh the UI.
Re - fetch the search results and refresh the UI .
public void Refresh()
        {
            SearchSettings.ApplyContextOptions(context);
            #if QUICKSEARCH_DEBUG
            Debug.LogWarning($"Searching {context.searchQuery} with {context.options}");
            #endif
            var foundItems = SearchService.GetItems(context);
            if (selectCallback != null)
                foundItems.Add(SearchItem.none);
            else if (String.IsNullOrEmpty(context.searchText))
                foundItems = SearchQuery.GetAllSearchQueryItems(context);
            SetItems(filterCallback == null ? foundItems : foundItems.Where(item => filterCallback(item)));
            EditorApplication.update -= UpdateAsyncResults;
            EditorApplication.update += UpdateAsyncResults;
        }
public void Refresh ( ) { SearchSettings . ApplyContextOptions ( context ) ; if QUICKSEARCH_DEBUG Debug . LogWarning ( $" Searching  { context . searchQuery }  with  { context . options } " ) ; endif var foundItems = SearchService . GetItems ( context ) ; if ( selectCallback != null ) foundItems . Add ( SearchItem . none ) ; else if ( String . IsNullOrEmpty ( context . searchText ) ) foundItems = SearchQuery . GetAllSearchQueryItems ( context ) ; SetItems ( filterCallback == null ? foundItems : foundItems . Where ( item => filterCallback ( item ) ) ) ; EditorApplication . update -= UpdateAsyncResults ; EditorApplication . update += UpdateAsyncResults ; }
Re-fetch the search results and refresh the UI.
Re - fetch the search results and refresh the UI .