mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-30 12:23:41 +01:00
Remove some warnings about nullable.
This commit is contained in:
parent
3f9d97f65f
commit
ef2f2cff5c
26 changed files with 330 additions and 352 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue