Skip to content

Commit

Permalink
Fix access level for log queue
Browse files Browse the repository at this point in the history
  • Loading branch information
mnadareski committed Dec 19, 2024
1 parent 7b7e891 commit 5ac0055
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
8 changes: 3 additions & 5 deletions MPF.UI/UserControls/LogOutput.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
using System.Windows.Threading;
using MPF.Frontend;

#pragma warning disable IDE1006 // Naming Styles

namespace MPF.UI.UserControls
{
public partial class LogOutput : UserControl
Expand All @@ -21,7 +19,7 @@ public partial class LogOutput : UserControl
/// <summary>
/// Queue of items that need to be logged
/// </summary>
internal ProcessingQueue<LogLine> LogQueue { get; private set; }
private readonly ProcessingQueue<LogLine> _logQueue;

/// <summary>
/// Paragraph backing the log
Expand Down Expand Up @@ -52,7 +50,7 @@ public LogOutput()
Document.Blocks.Add(_paragraph);

// Setup the processing queue
LogQueue = new ProcessingQueue<LogLine>(ProcessLogLine);
_logQueue = new ProcessingQueue<LogLine>(ProcessLogLine);

// Add handlers
OutputViewer!.SizeChanged += OutputViewerSizeChanged;
Expand All @@ -78,7 +76,7 @@ public void EnqueueLog(LogLevel logLevel, string text)
return;

// Enqueue the text
LogQueue.Enqueue(new LogLine(text, logLevel));
_logQueue.Enqueue(new LogLine(text, logLevel));
}

/// <summary>
Expand Down

0 comments on commit 5ac0055

Please sign in to comment.