Move debug log clearing to handle pending entries too in publci api

This commit is contained in:
Wojtek Figat
2025-07-01 10:52:04 +02:00
parent 6efd456eaf
commit 78f0ff75f2

View File

@@ -447,6 +447,10 @@ namespace FlaxEditor.Windows
/// </summary>
public void Clear()
{
lock (_locker)
{
_pendingEntries.Clear();
}
if (_entriesPanel == null)
return;
RemoveEntries();
@@ -740,10 +744,6 @@ namespace FlaxEditor.Windows
// Clear on Play
if (Editor.Options.Options.Interface.DebugLogClearOnPlay)
{
lock (_locker)
{
_pendingEntries?.Clear();
}
Clear();
}
}