Update LogPanel.cs

This commit is contained in:
Sinai 2021-10-19 16:32:33 +11:00
parent a07ead2142
commit 0eae78eeb2

View File

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