mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-12-20 10:36:59 +00:00
small cleanup
This commit is contained in:
parent
8ec1a3a594
commit
1c6652bae1
2 changed files with 10 additions and 11 deletions
|
|
@ -47,11 +47,9 @@ namespace Ryujinx.Ava.UI.SetupWizard
|
||||||
public SetupWizardPage WithContent<TControl, TViewModel>(out TViewModel boundViewModel)
|
public SetupWizardPage WithContent<TControl, TViewModel>(out TViewModel boundViewModel)
|
||||||
where TControl : RyujinxControl<TViewModel>, new()
|
where TControl : RyujinxControl<TViewModel>, new()
|
||||||
where TViewModel : SetupWizardPageContext, new()
|
where TViewModel : SetupWizardPageContext, new()
|
||||||
{
|
=> WithContent<TControl>(
|
||||||
boundViewModel = new() { NotificationManager = ownerWizard.NotificationManager };
|
boundViewModel = new() { NotificationManager = ownerWizard.NotificationManager }
|
||||||
|
);
|
||||||
return WithContent<TControl>(boundViewModel);
|
|
||||||
}
|
|
||||||
|
|
||||||
public SetupWizardPage WithActionContent(LocaleKeys content) =>
|
public SetupWizardPage WithActionContent(LocaleKeys content) =>
|
||||||
WithActionContent(LocaleManager.Instance[content]);
|
WithActionContent(LocaleManager.Instance[content]);
|
||||||
|
|
|
||||||
|
|
@ -8,18 +8,19 @@ using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Ryujinx.Ava.UI.SetupWizard
|
namespace Ryujinx.Ava.UI.SetupWizard
|
||||||
{
|
{
|
||||||
public partial class SetupWizardPage(ContentPresenter contentPresenter, RyujinxSetupWizard ownerWizard, bool isFirstPage = false) : BaseModel
|
public partial class SetupWizardPage(
|
||||||
|
ContentPresenter contentPresenter,
|
||||||
|
RyujinxSetupWizard ownerWizard,
|
||||||
|
bool isFirstPage = false) : BaseModel
|
||||||
{
|
{
|
||||||
private bool? _result;
|
private bool? _result;
|
||||||
private readonly CancellationTokenSource _cts = new();
|
private readonly CancellationTokenSource _cts = new();
|
||||||
|
|
||||||
public bool IsFirstPage { get; } = isFirstPage;
|
public bool IsFirstPage => isFirstPage;
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty] public partial string? Title { get; set; }
|
||||||
public partial string? Title { get; set; }
|
|
||||||
|
|
||||||
[ObservableProperty]
|
[ObservableProperty] public partial object? Content { get; set; }
|
||||||
public partial object? Content { get; set; }
|
|
||||||
|
|
||||||
[ObservableProperty] public partial object? HelpContent { get; set; }
|
[ObservableProperty] public partial object? HelpContent { get; set; }
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue