Skip to content

Commit 04a008c

Browse files
authored
Fix: Fixed InvalidOperationException in FileProperty.RetrieveAndInitializePropertiesAsync (#15672)
1 parent 16eb4a7 commit 04a008c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Files.App/ViewModels/Properties/Items/FileProperty.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using Files.App.Converters;
55
using Microsoft.UI.Xaml;
66
using Microsoft.UI.Xaml.Data;
7-
using System.Text.Json;
7+
using System.Collections.Concurrent;
88
using Windows.Storage;
99

1010
namespace Files.App.ViewModels.Properties
@@ -275,7 +275,7 @@ private object ConvertBack(string value)
275275
return value;
276276
}
277277

278-
private static Dictionary<string, string> cachedPropertiesListFiles = [];
278+
private static ConcurrentDictionary<string, string> cachedPropertiesListFiles = [];
279279

280280
/// <summary>
281281
/// This function retrieves the list of properties to display from the PropertiesInformation.json

0 commit comments

Comments
 (0)