fix(home): a build whose folder was deleted outside the launcher leaves the list #112

Merged
llun merged 1 commit from HumanBean/LongshotLauncher:fix/forget-deleted-builds into main 2026-11-15 19:42:29 +00:00
Owner

When a build's folder is deleted by hand (in the file manager) instead of with the launcher's Delete, its row stays on the home: a version that can't be played, still counted in the footer and kept in builds.json.

What changes

  • BuildRegistry.ForgetGone drops the rows whose folder is gone. BuildRegistry.Gone counts a folder as gone when it isn't there but the folder that held it is, so a build on an unplugged drive or a disconnected network share keeps its row until it's back. A folder that's still there but has no game in it keeps its row too, and still shows "not built".
  • The home does this on every refresh, so at start and whenever you come back to it. Builds the launcher is deleting itself are skipped. The change is saved to builds.json, tools only those builds used are pruned, and sizes are measured again. A toast says how many versions left the list. If the default build is the one that went, the next build becomes the default.
  • When the window becomes active again on the home, it refreshes, but only if a folder is actually gone. So a folder deleted while the launcher is open drops out as soon as you switch back.
  • The toast text is translated into every catalog. A new check in RegistryChecks covers: deleted, unplugged, being deleted, and folder there with its game missing.

Limit: on Linux, a build placed directly inside the mount point of an unmounted drive (/mnt/usb/<build>) looks deleted, because the empty mount point is still there. The default layout, <builds folder>/<channel>, is not affected.

No screenshot: the only thing that shows on screen is the toast.

Tests: python -I tests/test_launcher_core.py (1292 checks passed) and python -I tests/test_release.py (31 OK). The app builds.

🤖 Generated with Claude Code

When a build's folder is deleted by hand (in the file manager) instead of with the launcher's Delete, its row stays on the home: a version that can't be played, still counted in the footer and kept in builds.json. **What changes** - `BuildRegistry.ForgetGone` drops the rows whose folder is gone. `BuildRegistry.Gone` counts a folder as gone when it isn't there **but the folder that held it is**, so a build on an unplugged drive or a disconnected network share keeps its row until it's back. A folder that's still there but has no game in it keeps its row too, and still shows "not built". - The home does this on every refresh, so at start and whenever you come back to it. Builds the launcher is deleting itself are skipped. The change is saved to builds.json, tools only those builds used are pruned, and sizes are measured again. A toast says how many versions left the list. If the default build is the one that went, the next build becomes the default. - When the window becomes active again on the home, it refreshes, but only if a folder is actually gone. So a folder deleted while the launcher is open drops out as soon as you switch back. - The toast text is translated into every catalog. A new check in `RegistryChecks` covers: deleted, unplugged, being deleted, and folder there with its game missing. **Limit:** on Linux, a build placed directly inside the mount point of an unmounted drive (`/mnt/usb/<build>`) looks deleted, because the empty mount point is still there. The default layout, `<builds folder>/<channel>`, is not affected. No screenshot: the only thing that shows on screen is the toast. Tests: `python -I tests/test_launcher_core.py` (1292 checks passed) and `python -I tests/test_release.py` (31 OK). The app builds. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(home): a build whose folder was deleted outside the launcher leaves the list
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 3s
5e22e840fa
Co-Authored-By: Claude Opus 5.5 <[email protected]>
llun approved these changes 2026-11-15 19:42:25 +00:00
llun merged commit 32bf43fa69 into main 2026-11-15 19:42:29 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/LongshotLauncher!112
No description provided.