mirror of
https://github.com/rommapp/romm.git
synced 2026-12-04 12:52:19 +01:00
The platform gallery's Random ROM button never re-checked which platform was on screen when its request came back, so a pick started before switching platforms still navigated, landing the user in a game from the gallery they had left. Capture the platform id at click time and abandon the pick once it no longer matches, the same guard the collection gallery already carries. Fixes #4104 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>