mirror of
https://github.com/SabreTools/MPF.git
synced 2026-04-22 06:09:25 +00:00
Fix access level for log queue
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
/// <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
|
||||
@@ -52,7 +50,7 @@ namespace MPF.UI.UserControls
|
||||
Document.Blocks.Add(_paragraph);
|
||||
|
||||
// Setup the processing queue
|
||||
LogQueue = new ProcessingQueue<LogLine>(ProcessLogLine);
|
||||
_logQueue = new ProcessingQueue<LogLine>(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));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user