mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-12-18 13:37:00 +00:00
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:
parent
f2105d6040
commit
84f26f7276
20 changed files with 185 additions and 156 deletions
|
|
@ -10,11 +10,21 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||
{
|
||||
public partial class UserSaveManagerViewModel : BaseModel
|
||||
{
|
||||
[ObservableProperty] private int _sortIndex;
|
||||
[ObservableProperty] private int _orderIndex;
|
||||
[ObservableProperty] private string _search;
|
||||
[ObservableProperty] private ObservableCollection<SaveModel> _saves = [];
|
||||
[ObservableProperty] private ObservableCollection<SaveModel> _views = [];
|
||||
[ObservableProperty]
|
||||
public partial int SortIndex { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
public partial int OrderIndex { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
public partial string Search { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
public partial ObservableCollection<SaveModel> Saves { get; set; } = [];
|
||||
|
||||
[ObservableProperty]
|
||||
public partial ObservableCollection<SaveModel> Views { get; set; } = [];
|
||||
|
||||
private readonly AccountManager _accountManager;
|
||||
|
||||
public string SaveManagerHeading => LocaleManager.Instance.UpdateAndGetDynamicValue(LocaleKeys.SaveManagerHeading, _accountManager.LastOpenedUser.Name, _accountManager.LastOpenedUser.UserId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue