mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-14 06:39:12 +00:00
More PR suggestions
This commit is contained in:
parent
dd96f2df10
commit
16b6933bc0
2 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue