mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Merge pull request #445 from Flow-Launcher/fixConcurrentIssue
Dev branch: Use ConcurrentDictionary to replace Dictionary
This commit is contained in:
commit
a451f789f3
1 changed files with 2 additions and 1 deletions
|
|
@ -21,6 +21,7 @@ using JetBrains.Annotations;
|
|||
using System.Runtime.CompilerServices;
|
||||
using Flow.Launcher.Infrastructure.Logger;
|
||||
using Flow.Launcher.Infrastructure.Storage;
|
||||
using System.Collections.Concurrent;
|
||||
|
||||
namespace Flow.Launcher
|
||||
{
|
||||
|
|
@ -144,7 +145,7 @@ namespace Flow.Launcher
|
|||
public void LogException(string className, string message, Exception e,
|
||||
[CallerMemberName] string methodName = "") => Log.Exception(className, message, e, methodName);
|
||||
|
||||
private readonly Dictionary<Type, object> _pluginJsonStorages = new();
|
||||
private readonly ConcurrentDictionary<Type, object> _pluginJsonStorages = new();
|
||||
|
||||
public void SavePluginSettings()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue