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 7e6cc31866
commit 94870eafaa
5 changed files with 22 additions and 12 deletions

View File

@@ -1,13 +1,19 @@
using Gommon;
using Ryujinx.Ava.Common.Locale;
using Ryujinx.Ava.UI.Helpers;
using Ryujinx.Ava.UI.ViewModels;
namespace Ryujinx.Ava.UI.SetupWizard
{
public abstract class SetupWizardPageContext : BaseModel
public abstract class SetupWizardPageContext(LocaleKeys title) : BaseModel
{
public LocaleKeys Title => title;
public RyujinxNotificationManager NotificationManager { get; init; }
// ReSharper disable once UnusedMemberInSuper.Global
// it's used implicitly as we use this type as a where guard for generics for WithContent<TControl, TContext>,
// it also ensures all context types implement completion
public abstract Result CompleteStep();
#nullable enable
public virtual object? CreateHelpContent()