Merge branch 'Tryibion-fix-log-clear-play'

This commit is contained in:
Wojtek Figat
2025-07-01 10:52:39 +02:00

View File

@@ -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();
@@ -735,10 +739,10 @@ namespace FlaxEditor.Windows
} }
/// <inheritdoc /> /// <inheritdoc />
public override void OnPlayBegin() public override void OnPlayBeginning()
{ {
// Clear on Play // Clear on Play
if (_clearOnPlayButton.Checked) if (Editor.Options.Options.Interface.DebugLogClearOnPlay)
{ {
Clear(); Clear();
} }