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()); }