From e3f5ec2b3b86b5a407e856e2c2cc68b3cd51ca48 Mon Sep 17 00:00:00 2001 From: hishitetsu <66369541+hishitetsu@users.noreply.github.com> Date: Tue, 25 Jun 2024 14:14:28 +0900 Subject: [PATCH 1/3] Update FolderSearch.cs --- src/Files.App/Utils/Storage/Search/FolderSearch.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Files.App/Utils/Storage/Search/FolderSearch.cs b/src/Files.App/Utils/Storage/Search/FolderSearch.cs index 82087b901a54..23432318648a 100644 --- a/src/Files.App/Utils/Storage/Search/FolderSearch.cs +++ b/src/Files.App/Utils/Storage/Search/FolderSearch.cs @@ -101,7 +101,7 @@ private async Task AddItemsForHomeAsync(IList results, CancellationT } else { - foreach (var drive in drivesViewModel.Drives.Cast().Where(x => !x.IsNetwork)) + foreach (var drive in drivesViewModel.Drives.ToList().Cast().Where(x => !x.IsNetwork)) { await AddItemsAsync(drive.Path, results, token); } From bdda775065e0a8a9e4cf040f7bd8ceecd94b0822 Mon Sep 17 00:00:00 2001 From: hishitetsu <66369541+hishitetsu@users.noreply.github.com> Date: Tue, 25 Jun 2024 14:23:00 +0900 Subject: [PATCH 2/3] Update FileProperty.cs --- src/Files.App/ViewModels/Properties/Items/FileProperty.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Files.App/ViewModels/Properties/Items/FileProperty.cs b/src/Files.App/ViewModels/Properties/Items/FileProperty.cs index a2a66c17ce3c..6d2a9207ed2f 100644 --- a/src/Files.App/ViewModels/Properties/Items/FileProperty.cs +++ b/src/Files.App/ViewModels/Properties/Items/FileProperty.cs @@ -4,7 +4,7 @@ using Files.App.Converters; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Data; -using System.Text.Json; +using System.Collections.Concurrent; using Windows.Storage; namespace Files.App.ViewModels.Properties @@ -275,7 +275,7 @@ private object ConvertBack(string value) return value; } - private static Dictionary cachedPropertiesListFiles = []; + private static ConcurrentDictionary cachedPropertiesListFiles = []; /// /// This function retrieves the list of properties to display from the PropertiesInformation.json From 113be20833eb7fdb47eabbc529dff345a6c06589 Mon Sep 17 00:00:00 2001 From: hishitetsu <66369541+hishitetsu@users.noreply.github.com> Date: Tue, 25 Jun 2024 14:24:31 +0900 Subject: [PATCH 3/3] Revert "Update FolderSearch.cs" This reverts commit e3f5ec2b3b86b5a407e856e2c2cc68b3cd51ca48. --- src/Files.App/Utils/Storage/Search/FolderSearch.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Files.App/Utils/Storage/Search/FolderSearch.cs b/src/Files.App/Utils/Storage/Search/FolderSearch.cs index 23432318648a..82087b901a54 100644 --- a/src/Files.App/Utils/Storage/Search/FolderSearch.cs +++ b/src/Files.App/Utils/Storage/Search/FolderSearch.cs @@ -101,7 +101,7 @@ private async Task AddItemsForHomeAsync(IList results, CancellationT } else { - foreach (var drive in drivesViewModel.Drives.ToList().Cast().Where(x => !x.IsNetwork)) + foreach (var drive in drivesViewModel.Drives.Cast().Where(x => !x.IsNetwork)) { await AddItemsAsync(drive.Path, results, token); }