From 149205e8ebe5c4ab1ca52ca700ff754aabdf14aa Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Wed, 16 Jul 2025 20:08:03 +0200 Subject: DebugLogViewer, DockTests --- Samples/common/src/SampleBaseForEditor.cs | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'Samples/common/src') diff --git a/Samples/common/src/SampleBaseForEditor.cs b/Samples/common/src/SampleBaseForEditor.cs index b97982e6..3133286f 100644 --- a/Samples/common/src/SampleBaseForEditor.cs +++ b/Samples/common/src/SampleBaseForEditor.cs @@ -5,15 +5,11 @@ using System; using Crow; using System.IO; -using System.Text; -using Crow.IML; -using System.Runtime.CompilerServices; using Glfw; -using System.Diagnostics; using Crow.Text; using System.Collections.Generic; using Encoding = System.Text.Encoding; -using System.Linq; +using Crow.DebugLogger; namespace Samples { @@ -69,9 +65,10 @@ namespace Samples } } - #region DebugLog + #region DebugLog bool debugLogRecording; public bool DebugLoggingEnabled => DbgLogger.IsEnabled; + public IEnumerable DebugEvents => DbgLogger.Events; static ObservableList RecordedEvents; public bool DebugLogRecording { @@ -80,11 +77,6 @@ namespace Samples if (debugLogRecording == value) return; debugLogRecording = value; - if (debugLogRecording) { - DbgLogger.IncludedEvents = new List(RecordedEvents); - } else { - DbgLogger.IncludedEvents = null; - } NotifyValueChanged(debugLogRecording); } } @@ -107,6 +99,9 @@ namespace Samples NotifyValueChanged (DebugLogFilePath); } } + + + #endregion -- cgit v1.3.1-4-g156e