From 4bbcec20765dc6602e10aaf097e736e1a95f95cb Mon Sep 17 00:00:00 2001 From: Vova Date: Sun, 9 Feb 2025 15:30:33 +1000 Subject: [PATCH] Fixed a bug where control would not return after changing settings. Added a function to update the gamelist status after the game is released --- src/Ryujinx/AppHost.cs | 3 +++ src/Ryujinx/UI/Windows/MainWindow.axaml.cs | 5 +++++ src/Ryujinx/UI/Windows/UserConfigWindows.axaml.cs | 3 ++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Ryujinx/AppHost.cs b/src/Ryujinx/AppHost.cs index 62a1aff7d..c64e831cc 100644 --- a/src/Ryujinx/AppHost.cs +++ b/src/Ryujinx/AppHost.cs @@ -586,6 +586,9 @@ namespace Ryujinx.Ava // (resets custom settings if there were any) Program.ReloadConfig(); + //Updates the gameList (changes the status of the user setting if it was added or removed during the game) + RyujinxApp.MainWindow.GameListUpdate(); + _isStopped = true; Stop(); } diff --git a/src/Ryujinx/UI/Windows/MainWindow.axaml.cs b/src/Ryujinx/UI/Windows/MainWindow.axaml.cs index 669e338df..120b82ff3 100644 --- a/src/Ryujinx/UI/Windows/MainWindow.axaml.cs +++ b/src/Ryujinx/UI/Windows/MainWindow.axaml.cs @@ -645,6 +645,11 @@ namespace Ryujinx.Ava.UI.Windows ReloadGameList(); } + public void GameListUpdate() + { + ReloadGameList(); + } + public void ToggleFileType(string fileType) { switch (fileType) diff --git a/src/Ryujinx/UI/Windows/UserConfigWindows.axaml.cs b/src/Ryujinx/UI/Windows/UserConfigWindows.axaml.cs index 854242ecc..6fd35825a 100644 --- a/src/Ryujinx/UI/Windows/UserConfigWindows.axaml.cs +++ b/src/Ryujinx/UI/Windows/UserConfigWindows.axaml.cs @@ -108,7 +108,8 @@ namespace Ryujinx.Ava.UI.Windows } protected override void OnClosing(WindowClosingEventArgs e) - { + { + InputPage.Dispose(); // You need to unload the gamepad settings, otherwise the controls will be blocked base.OnClosing(e); } }