mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-04-17 19:52:54 +00:00
feature: .NET 10 (ryubing/ryujinx!214)
See merge request ryubing/ryujinx!214
This commit is contained in:
@@ -7,14 +7,16 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||
{
|
||||
public partial class DlcSelectViewModel : BaseModel
|
||||
{
|
||||
[ObservableProperty] private DownloadableContentModel[] _dlcs;
|
||||
[ObservableProperty]
|
||||
public partial DownloadableContentModel[] Dlcs { get; set; }
|
||||
#nullable enable
|
||||
[ObservableProperty] private DownloadableContentModel? _selectedDlc;
|
||||
[ObservableProperty]
|
||||
public partial DownloadableContentModel? SelectedDlc { get; set; }
|
||||
#nullable disable
|
||||
|
||||
public DlcSelectViewModel(ulong titleId, ApplicationLibrary appLibrary)
|
||||
{
|
||||
_dlcs = appLibrary.FindDlcsFor(titleId)
|
||||
Dlcs = appLibrary.FindDlcsFor(titleId)
|
||||
.OrderBy(it => it.IsBundled ? 0 : 1)
|
||||
.ThenBy(it => it.TitleId)
|
||||
.ToArray();
|
||||
|
||||
Reference in New Issue
Block a user