Skip to content

Async move item for helper - #7

Open
abiligiri wants to merge 3 commits into
XcodesOrg:mainfrom
abiligiri:async-move-item-for-helper
Open

Async move item for helper#7
abiligiri wants to merge 3 commits into
XcodesOrg:mainfrom
abiligiri:async-move-item-for-helper

Conversation

@abiligiri

Copy link
Copy Markdown
  • Add Async move helper to allow installs and other file operations using the privileged helper
  • Add uninstalling state to allow UI to show in-progress uninstall

Allows callers to route the post-unarchive move into place through
an async privileged-helper XPC call instead of only synchronous
FileManager operations.
Lets callers show progress feedback while a privileged-helper delete is in flight instead of leaving the row looking unchanged for the whole operation.

XcodeListComposer now preserves .uninstalling across recomposes the same way it already preserves .installing, so a concurrent available-list refresh doesn't prematurely clear the in-progress state.
Preserving it (like .installing) meant the row never cleared back to .notInstalled after a real uninstall finished, since AppState's own post-uninstall updateInstalledXcodesAsync() recompute would just keep restoring the stale in-progress marker instead of the freshly-scanned disk state.
注册 for free to join this conversation on GitHub. Already have an account? 登录 to comment

标签

None yet

项目

None yet

Development

Successfully merging this pull request may close these issues.

1 participant