mirror of
https://github.com/rommapp/romm.git
synced 2026-12-04 12:52:19 +01:00
`_identify_rom` returns rather than raises when the stop flag is set, so a scoped scan stopped after it began would finish its gather, fall through to the post-scan work and emit `scan:done`, leaving the flag set behind it. A library scan is shielded by the next platform's own check; a scoped scan of a single platform, which is what the refresh-metadata dialog sends, has no such next call. Re-check the flag after the gather. The scoped totals also counted roms whose platform row is gone, which the scan loop then skipped, so the tracker could never reach its own total. Drop those roms once, up front, and let the totals and the loop read from the same dict. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>