Update LibreHardwareMonitor
All checks were successful
Deploy to Gitea Releases / deploy-to-gitea-releases (push) Successful in 3m10s
All checks were successful
Deploy to Gitea Releases / deploy-to-gitea-releases (push) Successful in 3m10s
- Some nullability updates
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using ChrisKaczor.Wpf.Windows.FloatingStatusWindow;
|
||||
using HardwareMonitorStatusWindow.Service;
|
||||
using HardwareMonitorStatusWindow.StatusWindow.SettingsWindow;
|
||||
using LibreHardwareMonitor.PawnIo;
|
||||
using Microsoft.Win32.TaskScheduler;
|
||||
using Serilog;
|
||||
using System;
|
||||
@@ -23,13 +24,24 @@ internal class WindowSource : IWindowSource, IDisposable
|
||||
private readonly FloatingStatusWindow _floatingStatusWindow;
|
||||
private readonly Timer _timer;
|
||||
private readonly Dispatcher _dispatcher;
|
||||
|
||||
|
||||
internal WindowSource()
|
||||
{
|
||||
try
|
||||
{
|
||||
using var taskService = new TaskService();
|
||||
|
||||
if (!PawnIo.IsInstalled)
|
||||
{
|
||||
Log.Information("PawnIO not installed");
|
||||
}
|
||||
else
|
||||
{
|
||||
var pawnIoVersion = PawnIo.Version;
|
||||
|
||||
Log.Information("PawnIO installed: {version}", pawnIoVersion);
|
||||
}
|
||||
|
||||
Log.Information("Checking for task name: {name}", HardwareMonitorService.ScheduledTaskName);
|
||||
|
||||
var existingTask = taskService.FindTask(HardwareMonitorService.ScheduledTaskName);
|
||||
@@ -231,6 +243,9 @@ internal class WindowSource : IWindowSource, IDisposable
|
||||
|
||||
foreach (var sensorEntry in Data.SensorEntries)
|
||||
{
|
||||
if (sensorEntry.Sensor == null)
|
||||
continue;
|
||||
|
||||
if (text.Length > 0)
|
||||
text.AppendLine();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user