From da00b14494dc4b96306bdd83aa9707a65de77942 Mon Sep 17 00:00:00 2001 From: tanjalibertatis Date: Sat, 26 Sep 2020 16:48:37 +0200 Subject: [PATCH] [BUG] Resolve network root sometimes not working with WARN ArgumentOutOfRangeException: Length cannot be less than zero. (Parameter 'length') #129 --- Utilities/Log.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Utilities/Log.cs b/Utilities/Log.cs index 88e7d58..6b61618 100644 --- a/Utilities/Log.cs +++ b/Utilities/Log.cs @@ -28,8 +28,8 @@ namespace SystemTrayMenu.Utilities { if (!infos.Contains(message)) { - LogValue.Info(message); infos.Add(message); + LogValue.Info(message); } } @@ -38,8 +38,8 @@ namespace SystemTrayMenu.Utilities string warning = $"{message} {ex.ToString().Replace(Environment.NewLine, " ", StringComparison.InvariantCulture)}"; if (!warnings.Contains(warning)) { - LogValue.Warn(warning); warnings.Add(warning); + LogValue.Warn(warning); } }