small cleanup

This commit is contained in:
GreemDev 2025-11-27 00:37:00 -06:00
parent 8ec1a3a594
commit 1c6652bae1
2 changed files with 10 additions and 11 deletions

View file

@ -47,11 +47,9 @@ namespace Ryujinx.Ava.UI.SetupWizard
public SetupWizardPage WithContent<TControl, TViewModel>(out TViewModel boundViewModel) public SetupWizardPage WithContent<TControl, TViewModel>(out TViewModel boundViewModel)
where TControl : RyujinxControl<TViewModel>, new() where TControl : RyujinxControl<TViewModel>, new()
where TViewModel : SetupWizardPageContext, new() where TViewModel : SetupWizardPageContext, new()
{ => WithContent<TControl>(
boundViewModel = new() { NotificationManager = ownerWizard.NotificationManager }; boundViewModel = new() { NotificationManager = ownerWizard.NotificationManager }
);
return WithContent<TControl>(boundViewModel);
}
public SetupWizardPage WithActionContent(LocaleKeys content) => public SetupWizardPage WithActionContent(LocaleKeys content) =>
WithActionContent(LocaleManager.Instance[content]); WithActionContent(LocaleManager.Instance[content]);

View file

@ -8,18 +8,19 @@ using System.Threading.Tasks;
namespace Ryujinx.Ava.UI.SetupWizard namespace Ryujinx.Ava.UI.SetupWizard
{ {
public partial class SetupWizardPage(ContentPresenter contentPresenter, RyujinxSetupWizard ownerWizard, bool isFirstPage = false) : BaseModel public partial class SetupWizardPage(
ContentPresenter contentPresenter,
RyujinxSetupWizard ownerWizard,
bool isFirstPage = false) : BaseModel
{ {
private bool? _result; private bool? _result;
private readonly CancellationTokenSource _cts = new(); private readonly CancellationTokenSource _cts = new();
public bool IsFirstPage { get; } = isFirstPage; public bool IsFirstPage => isFirstPage;
[ObservableProperty] [ObservableProperty] public partial string? Title { get; set; }
public partial string? Title { get; set; }
[ObservableProperty] [ObservableProperty] public partial object? Content { get; set; }
public partial object? Content { get; set; }
[ObservableProperty] public partial object? HelpContent { get; set; } [ObservableProperty] public partial object? HelpContent { get; set; }