Update LibreHardwareMonitor
All checks were successful
Deploy to Gitea Releases / deploy-to-gitea-releases (push) Successful in 3m10s

- Some nullability updates
This commit is contained in:
2026-02-27 13:46:06 -05:00
parent 4cd7e74923
commit afa7bd987a
11 changed files with 58 additions and 38 deletions

View File

@@ -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();