further simplify pagebuilding by embedding the desired title locale key in the context base type

This commit is contained in:
GreemDev 2025-11-28 00:21:51 -06:00
parent a336bb0568
commit 327cdb825a
5 changed files with 22 additions and 12 deletions

View file

@ -19,12 +19,12 @@ using System.Threading.Tasks;
namespace Ryujinx.Ava.UI.SetupWizard.Pages
{
public partial class SetupKeysPageContext : SetupWizardPageContext
public partial class SetupKeysPageContext() : SetupWizardPageContext(LocaleKeys.SetupWizardKeysPageTitle)
{
public override Result CompleteStep() =>
!Directory.Exists(KeysFolderPath)
? Result.Fail
: InstallKeys(KeysFolderPath);
Directory.Exists(KeysFolderPath)
? InstallKeys(KeysFolderPath)
: Result.Fail;
public override object CreateHelpContent()
{