files-view: Don't "smooth" global search

Otherwise the current folder items show up for a moment.
This commit is contained in:
António Fernandes 2024-02-02 23:35:39 +00:00
parent ff70e5702b
commit ce47e61372

View file

@ -8650,9 +8650,13 @@ load_directory (NautilusFilesView *view,
nautilus_files_view_stop_loading (view);
if (NAUTILUS_IS_SEARCH_DIRECTORY (directory) || NAUTILUS_IS_SEARCH_DIRECTORY (priv->directory))
{
/* To make search feel fast and smooth as if it were filtering the
* current view, avoid blanking the view temporarily. */
search_transition_schedule_delayed_signals (view);
if (priv->search_query != NULL &&
!nautilus_query_is_global (priv->search_query))
{
/* To make search feel fast and smooth as if it were filtering the
* current view, avoid blanking the view temporarily. */
search_transition_schedule_delayed_signals (view);
}
}
emit_clear (view);