From 5ac0055e1663ff8549f853db6d21d3a0ac0e9d27 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 18 Dec 2024 23:18:02 -0500 Subject: [PATCH] Fix access level for log queue --- CHANGELIST.md | 1 + MPF.UI/UserControls/LogOutput.xaml.cs | 8 +++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CHANGELIST.md b/CHANGELIST.md index adbb3304..a71418e8 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -83,6 +83,7 @@ - Simplify direct package references - Remove vestigial progress indicators - Remove non-working last line log code +- Fix access level for log queue ### 3.2.4 (2024-11-24) diff --git a/MPF.UI/UserControls/LogOutput.xaml.cs b/MPF.UI/UserControls/LogOutput.xaml.cs index 7086f219..f8d15d60 100644 --- a/MPF.UI/UserControls/LogOutput.xaml.cs +++ b/MPF.UI/UserControls/LogOutput.xaml.cs @@ -7,8 +7,6 @@ using System.Windows.Media; using System.Windows.Threading; using MPF.Frontend; -#pragma warning disable IDE1006 // Naming Styles - namespace MPF.UI.UserControls { public partial class LogOutput : UserControl @@ -21,7 +19,7 @@ namespace MPF.UI.UserControls /// /// Queue of items that need to be logged /// - internal ProcessingQueue LogQueue { get; private set; } + private readonly ProcessingQueue _logQueue; /// /// Paragraph backing the log @@ -52,7 +50,7 @@ namespace MPF.UI.UserControls Document.Blocks.Add(_paragraph); // Setup the processing queue - LogQueue = new ProcessingQueue(ProcessLogLine); + _logQueue = new ProcessingQueue(ProcessLogLine); // Add handlers OutputViewer!.SizeChanged += OutputViewerSizeChanged; @@ -78,7 +76,7 @@ namespace MPF.UI.UserControls return; // Enqueue the text - LogQueue.Enqueue(new LogLine(text, logLevel)); + _logQueue.Enqueue(new LogLine(text, logLevel)); } ///