Skip to content

Commit 0fd162c

Browse files
yair100claude
andauthored
Fix: Fixed issue where tag search excluded folders when grouping by type (#18519)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 93ea88c commit 0fd162c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/Files.App/Utils/Storage/Search/FolderSearch.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public sealed class FolderSearch
2020
private readonly IFileTagsSettingsService fileTagsSettingsService = Ioc.Default.GetRequiredService<IFileTagsSettingsService>();
2121
private readonly ILogger logger = Ioc.Default.GetRequiredService<ILogger<FolderSearch>>();
2222

23+
private static readonly string folderTypeTextLocalized = Strings.Folder.GetLocalizedResource();
24+
2325
private const uint defaultStepSize = 500;
2426

2527
public string? Query { get; set; }
@@ -490,6 +492,7 @@ private ListedItem GetListedItemAsync(string itemPath, WIN32_FIND_DATA findData)
490492
ItemDateCreatedReal = systemCreatedTimeOutput.ToDateTime(),
491493
IsHiddenItem = isHidden,
492494
LoadFileIcon = false,
495+
ItemType = folderTypeTextLocalized,
493496
Opacity = isHidden ? Constants.UI.DimItemOpacity : 1
494497
};
495498
}
@@ -535,6 +538,7 @@ private async Task<ListedItem> GetListedItemAsync(IStorageItem item)
535538
ItemPath = folder.Path,
536539
ItemDateModifiedReal = props.DateModified,
537540
ItemDateCreatedReal = folder.DateCreated,
541+
ItemType = folderTypeTextLocalized,
538542
NeedsPlaceholderGlyph = false,
539543
Opacity = 1,
540544
FileSize = props.Size.ToSizeString(),
@@ -552,6 +556,7 @@ private async Task<ListedItem> GetListedItemAsync(IStorageItem item)
552556
ItemPath = folder.Path,
553557
ItemDateModifiedReal = props.DateModified,
554558
ItemDateCreatedReal = folder.DateCreated,
559+
ItemType = folderTypeTextLocalized,
555560
NeedsPlaceholderGlyph = false,
556561
Opacity = 1
557562
};

0 commit comments

Comments
 (0)