small cleanup

This commit is contained in:
GreemDev 2025-11-27 00:37:00 -06:00
parent 51ae03cc00
commit a5784b9257
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)
where TControl : RyujinxControl<TViewModel>, new()
where TViewModel : SetupWizardPageContext, new()
{
boundViewModel = new() { NotificationManager = ownerWizard.NotificationManager };
return WithContent<TControl>(boundViewModel);
}
=> WithContent<TControl>(
boundViewModel = new() { NotificationManager = ownerWizard.NotificationManager }
);
public SetupWizardPage WithActionContent(LocaleKeys content) =>
WithActionContent(LocaleManager.Instance[content]);

View File

@ -8,18 +8,19 @@ using System.Threading.Tasks;
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 readonly CancellationTokenSource _cts = new();
public bool IsFirstPage { get; } = isFirstPage;
public bool IsFirstPage => isFirstPage;
[ObservableProperty]
public partial string? Title { get; set; }
[ObservableProperty] public partial string? Title { get; set; }
[ObservableProperty]
public partial object? Content { get; set; }
[ObservableProperty] public partial object? Content { get; set; }
[ObservableProperty] public partial object? HelpContent { get; set; }