mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-03-10 16:41:08 +00:00
UI: Prevent null ldn game model arrays from entering the SetEntries method
This commit is contained in:
@@ -177,6 +177,8 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||
|
||||
private void SetEntries(IEnumerable<LdnGameModel> entries)
|
||||
{
|
||||
entries ??= [];
|
||||
|
||||
_visibleEntries = entries.ToList();
|
||||
OnPropertyChanged(nameof(VisibleEntries));
|
||||
}
|
||||
|
||||
@@ -149,7 +149,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||
/// </summary>
|
||||
public SafeDictionary<string, LdnGameModel.Array> UsableLdnData = [];
|
||||
|
||||
private LdnGameModel[] _ldnModels;
|
||||
private LdnGameModel[] _ldnModels = [];
|
||||
|
||||
public LdnGameModel[] LdnModels
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user