From 42e1fd917eeae614a00a918d30b88fb7f5d844ed Mon Sep 17 00:00:00 2001 From: Tudor Andrei Date: Mon, 31 Jul 2023 22:10:26 +0300 Subject: [PATCH] Removed some logs from console about json files that are opened --- PluginManager/Config.cs | 1 + PluginManager/Others/Functions.cs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/PluginManager/Config.cs b/PluginManager/Config.cs index a69e4f8..fd7d0f6 100644 --- a/PluginManager/Config.cs +++ b/PluginManager/Config.cs @@ -56,6 +56,7 @@ public class Config if (file is null) throw new FileLoadException("The file can not be null"); if(!File.Exists(file)) File.Create(file).Close(); + _dictionary = PrivateReadConfig(file).GetAwaiter().GetResult(); _file = file; } diff --git a/PluginManager/Others/Functions.cs b/PluginManager/Others/Functions.cs index d8e5f7b..4a3d8db 100644 --- a/PluginManager/Others/Functions.cs +++ b/PluginManager/Others/Functions.cs @@ -101,7 +101,6 @@ public static class Functions /// public static async Task ConvertFromJson(string input) { - Console.WriteLine(input); Stream text; if (File.Exists(input)) text = new MemoryStream(await File.ReadAllBytesAsync(input));