Refresh library view after changing user

This commit is contained in:
Théo Arrouye 2023-06-04 17:16:43 -07:00
parent d6d2b202d1
commit 51d5a7b16f

View file

@ -1357,7 +1357,14 @@ namespace Ryujinx.Ava.UI.ViewModels
public async void ManageProfiles() public async void ManageProfiles()
{ {
var prevUserId = AccountManager.LastOpenedUser.UserId;
await NavigationDialogHost.Show(AccountManager, ContentManager, VirtualFileSystem, LibHacHorizonManager.RyujinxClient); await NavigationDialogHost.Show(AccountManager, ContentManager, VirtualFileSystem, LibHacHorizonManager.RyujinxClient);
if (prevUserId != AccountManager.LastOpenedUser.UserId)
{
// current user changed, so refresh application metadata
LoadApplications();
}
} }
public void SimulateWakeUpMessage() public void SimulateWakeUpMessage()