Remove some unnecessary changes

This commit is contained in:
kekkon 2023-06-10 12:06:06 +02:00
parent 8cf372243f
commit 7d3624c69b

View file

@ -1502,7 +1502,8 @@ namespace Ryujinx.Ava.UI.ViewModels
if (!loadSuccessful) if (!loadSuccessful)
{ {
PostAppCleanup(); AppHost.DisposeContext();
AppHost = null;
return; return;
} }
@ -1580,11 +1581,6 @@ namespace Ryujinx.Ava.UI.ViewModels
} }
public void AppHost_AppExit(object sender, EventArgs e) public void AppHost_AppExit(object sender, EventArgs e)
{
PostAppCleanup();
}
private void PostAppCleanup()
{ {
if (IsClosing) if (IsClosing)
{ {