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

@@ -58,12 +58,12 @@
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<StackPanel>
<TextBlock Text="{Binding Path=Hardware.Type}"
<TextBlock Text="{Binding Path=Hardware.Type, FallbackValue=null}"
Height="Auto"
FontSize="10"
VerticalAlignment="Center"
Margin="0,2,0,2" />
<TextBlock Text="{Binding Path=Hardware.Name}"
<TextBlock Text="{Binding Path=Hardware.Name, FallbackValue=null}"
Height="Auto"
VerticalAlignment="Center" />
</StackPanel>
@@ -75,12 +75,12 @@
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<StackPanel>
<TextBlock Text="{Binding Path=Sensor.Type}"
<TextBlock Text="{Binding Path=Sensor.Type, FallbackValue=null}"
Height="Auto"
FontSize="10"
VerticalAlignment="Center"
Margin="0,2,0,2" />
<TextBlock Text="{Binding Path=Sensor.Name}"
<TextBlock Text="{Binding Path=Sensor.Name, FallbackValue=null}"
Height="Auto"
VerticalAlignment="Center" />
</StackPanel>

View File

@@ -7,7 +7,7 @@ namespace HardwareMonitorStatusWindow.StatusWindow.SettingsWindow;
public partial class HardwareSettingsPanel
{
private CollectionViewSource _collectionViewSource;
private CollectionViewSource? _collectionViewSource;
public HardwareSettingsPanel()
{
@@ -105,7 +105,7 @@ public partial class HardwareSettingsPanel
SensorDataGrid.SelectedItems.CopyTo(selectedItems, 0);
foreach (var sensorEntry in selectedItems)
Data.SensorEntries.Remove(sensorEntry);
Data.SensorEntries?.Remove(sensorEntry);
SetSensorButtonStates();
}

View File

@@ -12,7 +12,7 @@ public partial class SensorWindow
InitializeComponent();
}
public bool? Display(SensorEntry sensorEntry, Window owner)
public bool? Display(SensorEntry sensorEntry, Window? owner)
{
DataContext = sensorEntry;

View File

@@ -1,6 +1,5 @@
using System.Windows;
using System.Windows.Input;
using HardwareMonitorStatusWindow.StatusWindow;
namespace HardwareMonitorStatusWindow.StatusWindow.SettingsWindow;