Move debug log clearing to handle pending entries too in publci api
This commit is contained in:
@@ -447,6 +447,10 @@ namespace FlaxEditor.Windows
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void Clear()
|
public void Clear()
|
||||||
{
|
{
|
||||||
|
lock (_locker)
|
||||||
|
{
|
||||||
|
_pendingEntries.Clear();
|
||||||
|
}
|
||||||
if (_entriesPanel == null)
|
if (_entriesPanel == null)
|
||||||
return;
|
return;
|
||||||
RemoveEntries();
|
RemoveEntries();
|
||||||
@@ -740,10 +744,6 @@ namespace FlaxEditor.Windows
|
|||||||
// Clear on Play
|
// Clear on Play
|
||||||
if (Editor.Options.Options.Interface.DebugLogClearOnPlay)
|
if (Editor.Options.Options.Interface.DebugLogClearOnPlay)
|
||||||
{
|
{
|
||||||
lock (_locker)
|
|
||||||
{
|
|
||||||
_pendingEntries?.Clear();
|
|
||||||
}
|
|
||||||
Clear();
|
Clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user