Repository navigation
Uninstall: the core keeps everything else out while a game's folder goes (#507) - #573
Merged
Merged
Conversation
A second uninstall, cloud saves, installs, updates, moves, Play and a project change all leave a game alone while it's being uninstalled. Follows up elripalda#544 (elripalda#507).
Xarishark
marked this pull request as ready for review
November 25, 2026 12:20
This was referenced Nov 25, 2026
elripalda
added a commit
that referenced
this pull request
Nov 25, 2026
#403 (an update check can't overwrite a newer choice) and #573 (an update check leaves a game being uninstalled alone) both changed checkUpdates and each was tested against main without the other. Once both were in, each one's test context was missing what the other added (S.uninstalling and parentId; stillChecked), so 9 tests failed on main. The code is right; the two test setups now include both. Co-authored-by: Ripalda <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follows up #544 (#507). The "once only, nothing else while uninstalling" rule lived only in the window (
S.uninstalling). The core now keeps it too, so nothing reaches a folder while it's being deleted.Core
Apphas anuninstallingset besidemoving.uninstallmarks the game first and refuses a second call ("It's being uninstalled right now."). A drop guard clears the mark on every way out: success, error or panic.files_busy()(moving or uninstalling) replaces the moving-only checks in install/update, Play, Move, Free Up Space, the project merge and a project change (adopt). One game of several counts as busy while its recomp is being uninstalled.get_statedoesn't mark a half-deleted folder as missing while it's being uninstalled.Window (desktop and Big Picture share it)
updateGame).Tests
S.uninstalling.cargo test: 1085 passed, 0 failed.node --test tests/*.test.cjs: 979 passed, 0 failed.