mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-09 12:19:12 +00:00
Made execution neater
This commit is contained in:
parent
ccf8c6b369
commit
9589d1c3a8
1 changed files with 9 additions and 4 deletions
|
@ -736,6 +736,14 @@ namespace Ryujinx.Ava
|
|||
Logger.Info?.Print(LogClass.Emulation, "Emulation was paused");
|
||||
}
|
||||
|
||||
internal void Close()
|
||||
{
|
||||
if (Application.Current.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime app)
|
||||
{
|
||||
app.MainWindow.Close();
|
||||
}
|
||||
}
|
||||
|
||||
private void InitializeSwitchInstance()
|
||||
{
|
||||
// Initialize KeySet.
|
||||
|
@ -1006,10 +1014,7 @@ namespace Ryujinx.Ava
|
|||
{
|
||||
if (ConfigurationState.Instance.CloseOnEmulatorStop)
|
||||
{
|
||||
if (Application.Current.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime app)
|
||||
{
|
||||
app.MainWindow.Close();
|
||||
}
|
||||
Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue