mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-05-03 03:45:49 +00:00
content & viewmodel object creation helper with out param, touch up firmware install step
This commit is contained in:
@@ -2,6 +2,8 @@ using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Controls.Presenters;
|
||||
using Ryujinx.Ava.Common.Locale;
|
||||
using Ryujinx.Ava.UI.Controls;
|
||||
using Ryujinx.Ava.UI.ViewModels;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Ryujinx.Ava.Systems.SetupWizard
|
||||
@@ -52,6 +54,15 @@ namespace Ryujinx.Ava.Systems.SetupWizard
|
||||
return this;
|
||||
}
|
||||
|
||||
public SetupWizardPageBuilder WithContent<TControl, TViewModel>(out TViewModel boundViewModel)
|
||||
where TControl : RyujinxControl<TViewModel>, new()
|
||||
where TViewModel : BaseModel, new()
|
||||
{
|
||||
boundViewModel = new();
|
||||
|
||||
return WithContent<TControl>(boundViewModel);
|
||||
}
|
||||
|
||||
public SetupWizardPageBuilder WithActionContent(LocaleKeys content) =>
|
||||
WithActionContent(LocaleManager.Instance[content]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user