From 0eae78eeb2d46b7dda29740bd1468d8c15d803a4 Mon Sep 17 00:00:00 2001 From: Sinai <49360850+sinai-dev@users.noreply.github.com> Date: Tue, 19 Oct 2021 16:32:33 +1100 Subject: [PATCH] Update LogPanel.cs --- src/UI/Panels/LogPanel.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/UI/Panels/LogPanel.cs b/src/UI/Panels/LogPanel.cs index a528de8..9cc22e2 100644 --- a/src/UI/Panels/LogPanel.cs +++ b/src/UI/Panels/LogPanel.cs @@ -77,9 +77,8 @@ namespace UnityExplorer.UI.Panels var fileName = $"UnityExplorer {DateTime.Now:u}.txt"; fileName = IOUtility.EnsureValidFilename(fileName); - fileName = IOUtility.EnsureValidFilePath(fileName); - CurrentStreamPath = Path.Combine(path, fileName); + CurrentStreamPath = IOUtility.EnsureValidFilePath(Path.Combine(path, fileName)); File.WriteAllLines(CurrentStreamPath, Logs.Select(it => it.message).ToArray()); }