Reload configuration from global & reload app list at the end of the render loop (when it's done)

This commit is contained in:
Evan Husted 2025-02-17 01:47:59 -06:00
parent ced618d9a1
commit 65527cfb69
2 changed files with 7 additions and 12 deletions

View File

@ -582,13 +582,6 @@ namespace Ryujinx.Ava
Rainbow.Disable(); Rainbow.Disable();
Rainbow.Reset(); Rainbow.Reset();
// Reload settings when the game is turned off
// (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; _isStopped = true;
Stop(); Stop();
} }
@ -1125,6 +1118,13 @@ namespace Ryujinx.Ava
}); });
(RendererHost.EmbeddedWindow as EmbeddedWindowOpenGL)?.MakeCurrent(true); (RendererHost.EmbeddedWindow as EmbeddedWindowOpenGL)?.MakeCurrent(true);
// Reload settings when the game is turned off
// (resets custom settings if there were any)
Program.ReloadConfig();
// Reload application list (changes the status of the user setting if it was added or removed during the game)
Dispatcher.UIThread.Post(() => RyujinxApp.MainWindow.LoadApplications());
} }
public void InitStatus() public void InitStatus()

View File

@ -660,11 +660,6 @@ namespace Ryujinx.Ava.UI.Windows
ReloadGameList(); ReloadGameList();
} }
public void GameListUpdate()
{
ReloadGameList();
}
public void ToggleFileType(string fileType) public void ToggleFileType(string fileType)
{ {
switch (fileType) switch (fileType)