mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-12-16 12:09:51 +00:00
small cleanup
This commit is contained in:
parent
51ae03cc00
commit
a5784b9257
@ -47,11 +47,9 @@ namespace Ryujinx.Ava.UI.SetupWizard
|
||||
public SetupWizardPage WithContent<TControl, TViewModel>(out TViewModel boundViewModel)
|
||||
where TControl : RyujinxControl<TViewModel>, new()
|
||||
where TViewModel : SetupWizardPageContext, new()
|
||||
{
|
||||
boundViewModel = new() { NotificationManager = ownerWizard.NotificationManager };
|
||||
|
||||
return WithContent<TControl>(boundViewModel);
|
||||
}
|
||||
=> WithContent<TControl>(
|
||||
boundViewModel = new() { NotificationManager = ownerWizard.NotificationManager }
|
||||
);
|
||||
|
||||
public SetupWizardPage WithActionContent(LocaleKeys content) =>
|
||||
WithActionContent(LocaleManager.Instance[content]);
|
||||
|
||||
@ -8,18 +8,19 @@ using System.Threading.Tasks;
|
||||
|
||||
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 readonly CancellationTokenSource _cts = new();
|
||||
|
||||
public bool IsFirstPage { get; } = isFirstPage;
|
||||
public bool IsFirstPage => isFirstPage;
|
||||
|
||||
[ObservableProperty]
|
||||
public partial string? Title { get; set; }
|
||||
[ObservableProperty] public partial string? Title { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
public partial object? Content { get; set; }
|
||||
[ObservableProperty] public partial object? Content { get; set; }
|
||||
|
||||
[ObservableProperty] public partial object? HelpContent { get; set; }
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user