language feature: field keyword & partial properties for observable properties in the UI

partial properties are from C# 13 but weren't usable for these properties
This commit is contained in:
GreemDev
2025-09-12 13:58:01 -05:00
parent f2105d6040
commit 84f26f7276
20 changed files with 185 additions and 156 deletions

View File

@@ -21,10 +21,17 @@ namespace Ryujinx.Ava.UI.ViewModels
private ApplicationLibrary ApplicationLibrary { get; }
private ApplicationData ApplicationData { get; }
[ObservableProperty] private AvaloniaList<TitleUpdateModel> _titleUpdates = [];
[ObservableProperty] private AvaloniaList<object> _views = [];
[ObservableProperty] private object _selectedUpdate = new TitleUpdateViewModelNoUpdate();
[ObservableProperty] private bool _showBundledContentNotice;
[ObservableProperty]
public partial AvaloniaList<TitleUpdateModel> TitleUpdates { get; set; } = [];
[ObservableProperty]
public partial AvaloniaList<object> Views { get; set; } = [];
[ObservableProperty]
public partial object SelectedUpdate { get; set; } = new TitleUpdateViewModelNoUpdate();
[ObservableProperty]
public partial bool ShowBundledContentNotice { get; set; }
private readonly IStorageProvider _storageProvider;