fix(home): a build whose folder was deleted outside the launcher leaves the list #112
No reviewers
Labels
No labels
area/build
area/install
area/saves
area/tooling
area/ui
area/updates
ci: approved
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!112
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/LongshotLauncher:fix/forget-deleted-builds"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.ForgetGonedrops the rows whose folder is gone.BuildRegistry.Gonecounts 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".RegistryCheckscovers: 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) andpython -I tests/test_release.py(31 OK). The app builds.🤖 Generated with Claude Code