Skip to content

Commit e0ca27b

Browse files
Fix: Fixed issue where file names wouldn't update in the search results page (#14649)
1 parent f0cca18 commit e0ca27b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Files.App/Data/Models/ItemViewModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1328,6 +1328,7 @@ public void RefreshItems(string? previousDir, Action postLoadCallback = null)
13281328
private async Task RapidAddItemsToCollectionAsync(string path, string? previousDir, Action postLoadCallback)
13291329
{
13301330
IsSearchResults = false;
1331+
HasNoWatcher = false;
13311332
ItemLoadStatusChanged?.Invoke(this, new ItemLoadStatusChangedEventArgs() { Status = ItemLoadStatusChangedEventArgs.ItemLoadStatus.Starting });
13321333

13331334
CancelLoadAndClearFiles();
@@ -2392,6 +2393,7 @@ public async Task SearchAsync(FolderSearch search)
23922393
filesAndFolders.Clear();
23932394
IsLoadingItems = true;
23942395
IsSearchResults = true;
2396+
HasNoWatcher = true;
23952397
await ApplyFilesAndFoldersChangesAsync();
23962398
EmptyTextType = EmptyTextType.None;
23972399

0 commit comments

Comments
 (0)