mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-11-28 03:40:50 +01:00
Changes to game list reloading (#1334)
* Only reload list when game dirs are changed * do not reload game list when game is loaded
This commit is contained in:
parent
7cb6532971
commit
bf87f02c0c
@ -179,6 +179,14 @@ namespace Ryujinx.Ui
|
||||
UpdateColumns();
|
||||
UpdateGameTable();
|
||||
|
||||
ConfigurationState.Instance.Ui.GameDirs.Event += (sender, args) =>
|
||||
{
|
||||
if (args.OldValue != args.NewValue)
|
||||
{
|
||||
UpdateGameTable();
|
||||
}
|
||||
};
|
||||
|
||||
Task.Run(RefreshFirmwareLabel);
|
||||
|
||||
_statusBar.Hide();
|
||||
@ -313,7 +321,7 @@ namespace Ryujinx.Ui
|
||||
|
||||
internal static void UpdateGameTable()
|
||||
{
|
||||
if (_updatingGameTable)
|
||||
if (_updatingGameTable || _gameLoaded)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@ -438,7 +438,6 @@ namespace Ryujinx.Ui
|
||||
|
||||
MainWindow.SaveConfig();
|
||||
MainWindow.ApplyTheme();
|
||||
MainWindow.UpdateGameTable();
|
||||
Dispose();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user