diff --git a/CHANGELIST.md b/CHANGELIST.md
index a71418e8..a3a2c1e5 100644
--- a/CHANGELIST.md
+++ b/CHANGELIST.md
@@ -84,6 +84,7 @@
- Remove vestigial progress indicators
- Remove non-working last line log code
- Fix access level for log queue
+- Fix access level for log document
### 3.2.4 (2024-11-24)
diff --git a/MPF.UI/UserControls/LogOutput.xaml.cs b/MPF.UI/UserControls/LogOutput.xaml.cs
index f8d15d60..0318c1b4 100644
--- a/MPF.UI/UserControls/LogOutput.xaml.cs
+++ b/MPF.UI/UserControls/LogOutput.xaml.cs
@@ -14,7 +14,7 @@ namespace MPF.UI.UserControls
///
/// Document representing the text
///
- internal FlowDocument Document { get; private set; }
+ private readonly FlowDocument _document;
///
/// Queue of items that need to be logged
@@ -42,12 +42,12 @@ namespace MPF.UI.UserControls
#endif
// Update the internal state
- Document = new FlowDocument()
+ _document = new FlowDocument()
{
Background = new SolidColorBrush(Color.FromArgb(0xFF, 0x20, 0x20, 0x20))
};
_paragraph = new Paragraph();
- Document.Blocks.Add(_paragraph);
+ _document.Blocks.Add(_paragraph);
// Setup the processing queue
_logQueue = new ProcessingQueue(ProcessLogLine);
@@ -59,7 +59,7 @@ namespace MPF.UI.UserControls
SaveButton!.Click += OnSaveButton;
// Update the internal state
- Output.Document = Document;
+ Output.Document = _document;
}
#region Logging