Remove some warnings about nullable.

This commit is contained in:
Ottermandias 2021-02-21 16:08:08 +01:00
parent 3f9d97f65f
commit ef2f2cff5c
26 changed files with 330 additions and 352 deletions

View file

@ -12,12 +12,12 @@ namespace Penumbra.UI
private const float TextSizePadding = 5f;
private ModManager _mods => Service< ModManager >.Get();
private (string, string)[] _fileList;
private float _maxGamePath;
private (string, string)[]? _fileList;
private float _maxGamePath;
public TabEffective( SettingsInterface ui )
{
RebuildFileList( ui._plugin.Configuration.ShowAdvanced );
RebuildFileList( ui._plugin!.Configuration!.ShowAdvanced );
}
public void RebuildFileList( bool advanced )
@ -54,7 +54,7 @@ namespace Penumbra.UI
if( ImGui.ListBoxHeader( "##effective_files", AutoFillSize ) )
{
foreach( var file in _fileList )
foreach( var file in _fileList ?? Enumerable.Empty<(string, string)>() )
{
DrawFileLine( file );
}