Code cleaning

This commit is contained in:
Vova
2025-02-08 22:27:38 +10:00
parent 45b1794a45
commit ae16360685
8 changed files with 19 additions and 58 deletions

View File

@@ -135,7 +135,7 @@ namespace Ryujinx.Ava.UI.Views.Main
Rainbow.Enable();
if (ViewModel.SelectedApplication is null)
if (ViewModel.SelectedApplication is null) // Checks if game data exists
{
await Window.SettingsWindow.ShowDialog(Window);
}
@@ -145,10 +145,11 @@ namespace Ryujinx.Ava.UI.Views.Main
if (!ViewModel.IsGameRunning || !userConfigExist)
{
await Window.SettingsWindow.ShowDialog(Window);
await Window.SettingsWindow.ShowDialog(Window); // The game is not running, or if the user configuration does not exist
}
else
{
// If there is a custom configuration in the folder
await new UserConfigWindows(ViewModel, userConfigExist).ShowDialog((Window)ViewModel.TopLevel);
}
}