More PR suggestions

This commit is contained in:
Théo Arrouye 2023-06-15 09:17:05 -07:00
parent dd96f2df10
commit 16b6933bc0
2 changed files with 4 additions and 3 deletions

View file

@ -1358,6 +1358,7 @@ namespace Ryujinx.Ava.UI.ViewModels
public async void ManageProfiles()
{
var oldLastOpenedUserId = AccountManager.LastOpenedUser.UserId;
await NavigationDialogHost.Show(AccountManager, ContentManager, VirtualFileSystem, LibHacHorizonManager.RyujinxClient);
if (oldLastOpenedUserId != AccountManager.LastOpenedUser.UserId)

View file

@ -517,10 +517,10 @@ namespace Ryujinx.Ui.App.Common
Directory.CreateDirectory(metadataFolder);
// NOTE: Handle migration from old default to current user. Should be removed later.
string legacyFile = Path.Combine(guiFolder, "metadata.json");
if (File.Exists(legacyFile) && !File.Exists(metadataFile))
string oldMetadataFile = Path.Combine(guiFolder, "metadata.json");
if (File.Exists(oldMetadataFile) && !File.Exists(metadataFile))
{
File.Move(legacyFile, metadataFile);
File.Move(oldMetadataFile, metadataFile);
}
// Create metadata file if it doesn't exist yet.