mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-05-09 14:55:45 +00:00
combine SetupWizardPage and the builder type since the builder mutated an instance of the built type anyways
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user