From 16b6933bc0f4f5964782ef585596267c6dc55646 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Arrouye?= <5017270+tarrouye@users.noreply.github.com> Date: Thu, 15 Jun 2023 09:17:05 -0700 Subject: [PATCH] More PR suggestions --- src/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs | 1 + src/Ryujinx.Ui.Common/App/ApplicationLibrary.cs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs b/src/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs index 71dc12be3..4d34e1cf4 100644 --- a/src/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs +++ b/src/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs @@ -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) diff --git a/src/Ryujinx.Ui.Common/App/ApplicationLibrary.cs b/src/Ryujinx.Ui.Common/App/ApplicationLibrary.cs index 1a47c39df..de777b96c 100644 --- a/src/Ryujinx.Ui.Common/App/ApplicationLibrary.cs +++ b/src/Ryujinx.Ui.Common/App/ApplicationLibrary.cs @@ -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.