From 7d3624c69b9604d40f817d9ea8bc97e7bc724333 Mon Sep 17 00:00:00 2001 From: kekkon Date: Sat, 10 Jun 2023 12:06:06 +0200 Subject: [PATCH] Remove some unnecessary changes --- src/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs b/src/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs index 21373d5e7..6ae6d15bb 100644 --- a/src/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs +++ b/src/Ryujinx.Ava/UI/ViewModels/MainWindowViewModel.cs @@ -1502,7 +1502,8 @@ namespace Ryujinx.Ava.UI.ViewModels if (!loadSuccessful) { - PostAppCleanup(); + AppHost.DisposeContext(); + AppHost = null; return; } @@ -1580,11 +1581,6 @@ namespace Ryujinx.Ava.UI.ViewModels } public void AppHost_AppExit(object sender, EventArgs e) - { - PostAppCleanup(); - } - - private void PostAppCleanup() { if (IsClosing) {