From 51d5a7b16fff6f9afb1353e006eb5cc04d68c1e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Arrouye?= <5017270+tarrouye@users.noreply.github.com> Date: Sun, 4 Jun 2023 17:16:43 -0700 Subject: [PATCH] Refresh library view after changing user --- src/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs b/src/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs index a665b6f16..5486bd67d 100644 --- a/src/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs +++ b/src/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs @@ -1357,7 +1357,14 @@ namespace Ryujinx.Ava.UI.ViewModels public async void ManageProfiles() { + var prevUserId = AccountManager.LastOpenedUser.UserId; await NavigationDialogHost.Show(AccountManager, ContentManager, VirtualFileSystem, LibHacHorizonManager.RyujinxClient); + + if (prevUserId != AccountManager.LastOpenedUser.UserId) + { + // current user changed, so refresh application metadata + LoadApplications(); + } } public void SimulateWakeUpMessage()