From a5784b92578d013e9d7f9560ea6bef2ae8145049 Mon Sep 17 00:00:00 2001 From: GreemDev Date: Thu, 27 Nov 2025 00:37:00 -0600 Subject: [PATCH] small cleanup --- .../UI/SetupWizard/SetupWizardPage.Builder.cs | 8 +++----- src/Ryujinx/UI/SetupWizard/SetupWizardPage.cs | 13 +++++++------ 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/Ryujinx/UI/SetupWizard/SetupWizardPage.Builder.cs b/src/Ryujinx/UI/SetupWizard/SetupWizardPage.Builder.cs index edef4b3c1..033170091 100644 --- a/src/Ryujinx/UI/SetupWizard/SetupWizardPage.Builder.cs +++ b/src/Ryujinx/UI/SetupWizard/SetupWizardPage.Builder.cs @@ -47,11 +47,9 @@ namespace Ryujinx.Ava.UI.SetupWizard public SetupWizardPage WithContent(out TViewModel boundViewModel) where TControl : RyujinxControl, new() where TViewModel : SetupWizardPageContext, new() - { - boundViewModel = new() { NotificationManager = ownerWizard.NotificationManager }; - - return WithContent(boundViewModel); - } + => WithContent( + boundViewModel = new() { NotificationManager = ownerWizard.NotificationManager } + ); public SetupWizardPage WithActionContent(LocaleKeys content) => WithActionContent(LocaleManager.Instance[content]); diff --git a/src/Ryujinx/UI/SetupWizard/SetupWizardPage.cs b/src/Ryujinx/UI/SetupWizard/SetupWizardPage.cs index a13eec0dd..2380115f9 100644 --- a/src/Ryujinx/UI/SetupWizard/SetupWizardPage.cs +++ b/src/Ryujinx/UI/SetupWizard/SetupWizardPage.cs @@ -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; }