System: Don't unconditionally refresh save state UI

This commit is contained in:
Stenzek
2023-12-17 00:09:15 +10:00
parent 38777439c5
commit 6328d08c14
3 changed files with 8 additions and 1 deletions

View File

@ -3366,7 +3366,8 @@ void System::UpdateRunningGame(const char* path, CDImage* image, bool booting)
if (s_running_game_serial != prev_serial)
UpdateSessionTime(prev_serial);
SaveStateSelectorUI::RefreshList();
if (SaveStateSelectorUI::IsOpen())
SaveStateSelectorUI::RefreshList();
#ifdef ENABLE_DISCORD_PRESENCE
UpdateDiscordPresence();