mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-16 06:08:16 +08:00
Update LogPanel.cs
This commit is contained in:
parent
a07ead2142
commit
0eae78eeb2
@ -77,9 +77,8 @@ namespace UnityExplorer.UI.Panels
|
|||||||
|
|
||||||
var fileName = $"UnityExplorer {DateTime.Now:u}.txt";
|
var fileName = $"UnityExplorer {DateTime.Now:u}.txt";
|
||||||
fileName = IOUtility.EnsureValidFilename(fileName);
|
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());
|
File.WriteAllLines(CurrentStreamPath, Logs.Select(it => it.message).ToArray());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user