mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-04 19:08:23 +00:00
files-view: Don't "smooth" global search
Otherwise the current folder items show up for a moment.
This commit is contained in:
parent
ff70e5702b
commit
ce47e61372
1 changed files with 7 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue