Skip to content

Commit

Permalink
Fix: Fixed issue where file names wouldn't update in the search resul…
Browse files Browse the repository at this point in the history
…ts page (#14649)
  • Loading branch information
ferrariofilippo authored Feb 5, 2024
1 parent f0cca18 commit e0ca27b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Files.App/Data/Models/ItemViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1328,6 +1328,7 @@ public void RefreshItems(string? previousDir, Action postLoadCallback = null)
private async Task RapidAddItemsToCollectionAsync(string path, string? previousDir, Action postLoadCallback)
{
IsSearchResults = false;
HasNoWatcher = false;
ItemLoadStatusChanged?.Invoke(this, new ItemLoadStatusChangedEventArgs() { Status = ItemLoadStatusChangedEventArgs.ItemLoadStatus.Starting });

CancelLoadAndClearFiles();
Expand Down Expand Up @@ -2392,6 +2393,7 @@ public async Task SearchAsync(FolderSearch search)
filesAndFolders.Clear();
IsLoadingItems = true;
IsSearchResults = true;
HasNoWatcher = true;
await ApplyFilesAndFoldersChangesAsync();
EmptyTextType = EmptyTextType.None;

Expand Down

0 comments on commit e0ca27b

Please sign in to comment.