mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-12-12 07:36:59 +00:00
UI: Prevent null ldn game model arrays from entering the SetEntries method
This commit is contained in:
parent
c8959afa3d
commit
718652599d
2 changed files with 3 additions and 1 deletions
|
|
@ -177,6 +177,8 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||||
|
|
||||||
private void SetEntries(IEnumerable<LdnGameModel> entries)
|
private void SetEntries(IEnumerable<LdnGameModel> entries)
|
||||||
{
|
{
|
||||||
|
entries ??= [];
|
||||||
|
|
||||||
_visibleEntries = entries.ToList();
|
_visibleEntries = entries.ToList();
|
||||||
OnPropertyChanged(nameof(VisibleEntries));
|
OnPropertyChanged(nameof(VisibleEntries));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -149,7 +149,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public SafeDictionary<string, LdnGameModel.Array> UsableLdnData = [];
|
public SafeDictionary<string, LdnGameModel.Array> UsableLdnData = [];
|
||||||
|
|
||||||
private LdnGameModel[] _ldnModels;
|
private LdnGameModel[] _ldnModels = [];
|
||||||
|
|
||||||
public LdnGameModel[] LdnModels
|
public LdnGameModel[] LdnModels
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue