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
2 changed files with 9 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue