2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-04-05 17:39:39 -04:00
This commit is contained in:
Xjph 2022-03-15 11:15:53 -02:30
commit e4f90d5a62
3 changed files with 9 additions and 9 deletions

View File

@ -38,6 +38,13 @@ namespace Observatory
#endregion
#region Public properties
public LogMonitorState CurrentState
{
get => currentState;
}
#endregion
#region Public Methods
public void Start()

View File

@ -11,7 +11,6 @@ namespace Observatory.PluginManagement
private readonly NativeVoice NativeVoice;
private readonly NativePopup NativePopup;
private LogMonitorState currentLogMonitorState = LogMonitorState.Idle;
public PluginCore()
{
@ -19,11 +18,6 @@ namespace Observatory.PluginManagement
NativePopup = new();
}
internal void OnLogMonitorStateChanged(object sender, LogMonitorStateChangedEventArgs e)
{
currentLogMonitorState = e.NewState;
}
public string Version => System.Reflection.Assembly.GetEntryAssembly().GetName().Version.ToString();
public Status GetStatus()
@ -142,12 +136,12 @@ namespace Observatory.PluginManagement
public LogMonitorState CurrentLogMonitorState
{
get => currentLogMonitorState;
get => LogMonitor.GetInstance.CurrentState;
}
public bool IsLogMonitorBatchReading
{
get => LogMonitorStateChangedEventArgs.IsBatchRead(currentLogMonitorState);
get => LogMonitorStateChangedEventArgs.IsBatchRead(LogMonitor.GetInstance.CurrentState);
}
public event EventHandler<NotificationArgs> Notification;

View File

@ -49,7 +49,6 @@ namespace Observatory.PluginManagement
logMonitor.LogMonitorStateChanged += pluginHandler.OnLogMonitorStateChanged;
var core = new PluginCore();
logMonitor.LogMonitorStateChanged += core.OnLogMonitorStateChanged;
List<IObservatoryPlugin> errorPlugins = new();