From 14bc03dc0de768811a59a60a97d2060f51f217c5 Mon Sep 17 00:00:00 2001 From: Levi Dumas Date: Tue, 12 Mar 2024 18:41:21 -0500 Subject: [PATCH] Finally works --- src/Ryujinx/AppHost.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Ryujinx/AppHost.cs b/src/Ryujinx/AppHost.cs index cb8f1a2b2..f33b69139 100644 --- a/src/Ryujinx/AppHost.cs +++ b/src/Ryujinx/AppHost.cs @@ -1008,6 +1008,10 @@ namespace Ryujinx.Ava { Console.WriteLine("quitting"); Console.WriteLine("still quitting"); + if (Application.Current.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime app) + { + app.MainWindow.Close(); + } } else {