combine SetupWizardPage and the builder type since the builder mutated an instance of the built type anyways

This commit is contained in:
GreemDev
2025-11-23 17:28:48 -06:00
parent 884d0f526c
commit 8f529d17a8
6 changed files with 87 additions and 102 deletions

View File

@@ -11,18 +11,10 @@ namespace Ryujinx.Ava.Systems.SetupWizard
/// </summary>
public abstract Task Start();
protected ValueTask<bool> FirstPage()
{
SetupWizardPageBuilder builder = new(presenter, isFirstPage: true);
protected SetupWizardPage FirstPage()
=> new(presenter, isFirstPage: true);
return builder
.WithTitle(LocaleKeys.SetupWizardFirstPageTitle)
.WithContent(LocaleKeys.SetupWizardFirstPageContent)
.WithActionContent(LocaleKeys.SetupWizardFirstPageAction)
.Show();
}
protected SetupWizardPageBuilder NextPage()
protected SetupWizardPage NextPage()
=> new(presenter);
}
}