GameList: Fix database getting unloaded and lost on double refresh

This commit is contained in:
Connor McLaughlin 2021-04-18 01:36:21 +10:00
parent ff8679cbee
commit 2a8fd2f60b

View file

@ -627,7 +627,9 @@ void GameList::Refresh(bool invalidate_cache, bool invalidate_database, Progress
// don't need unused cache entries
CloseCacheFileStream();
m_cache_map.clear();
m_database.Unload();
// we don't need to keep the db around anymore, it's quick enough to re-parse if needed anyway
ClearDatabase();
}
void GameList::UpdateCompatibilityEntry(GameListCompatibilityEntry new_entry, bool save_to_list /*= true*/)