From 9e2837d885fdf1be972547b10d722cf06ff67ba3 Mon Sep 17 00:00:00 2001 From: _Neo_ Date: Mon, 20 Oct 2025 15:50:47 +0300 Subject: [PATCH] Fixed Styling & (Potential) Fix "No Profiles To Recover" --- src/Ryujinx/UI/ViewModels/UserProfileViewModel.cs | 14 ++++++++++---- src/Ryujinx/UI/Views/User/UserRecovererView.axaml | 9 +++++++++ 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/Ryujinx/UI/ViewModels/UserProfileViewModel.cs b/src/Ryujinx/UI/ViewModels/UserProfileViewModel.cs index f3a9e432a..7f4d18ba7 100644 --- a/src/Ryujinx/UI/ViewModels/UserProfileViewModel.cs +++ b/src/Ryujinx/UI/ViewModels/UserProfileViewModel.cs @@ -9,20 +9,26 @@ namespace Ryujinx.Ava.UI.ViewModels { public UserProfileViewModel() { - Profiles = []; - LostProfiles = []; - IsEmpty = !LostProfiles.Any(); + Profiles = new ObservableCollection(); + LostProfiles = new ObservableCollection(); } public ObservableCollection Profiles { get; set; } public ObservableCollection LostProfiles { get; set; } - public bool IsEmpty { get; set; } + public bool IsEmpty => !LostProfiles.Any(); public void Dispose() { GC.SuppressFinalize(this); } + + public void UpdateLostProfiles(ObservableCollection newProfiles) + { + LostProfiles = newProfiles; + OnPropertyChanged(nameof(LostProfiles)); + OnPropertyChanged(nameof(IsEmpty)); + } } } diff --git a/src/Ryujinx/UI/Views/User/UserRecovererView.axaml b/src/Ryujinx/UI/Views/User/UserRecovererView.axaml index 725706b3a..d77065abd 100644 --- a/src/Ryujinx/UI/Views/User/UserRecovererView.axaml +++ b/src/Ryujinx/UI/Views/User/UserRecovererView.axaml @@ -30,6 +30,15 @@ HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ItemsSource="{Binding LostProfiles}"> + + + +