Cap removed games cache at 200 entries

This commit is contained in:
Marco Allegretti 2026-03-23 13:05:27 +01:00
parent 8e2fedccfb
commit 24400ca5e1

View file

@ -1414,7 +1414,9 @@ void App::removeGame(Game *game)
return; return;
} }
// Store in removed games map for potential undo if (m_removedGames.size() >= 200) {
m_removedGames.clear();
}
m_removedGames[game->id()] = game->toJson(); m_removedGames[game->id()] = game->toJson();
m_gameModel->removeGame(game->id()); m_gameModel->removeGame(game->id());