Add mutual exclusion to new-folder command execution.
Rapidly clicking on the new folder button in the files app acting as a save-as dialog can cause multiple flows through that process (from pressing the button through to completing the rename) to run concurrently. This can cause some strange effects: - reporting that the directory already exists, despite the name intending to be unique; - getting stuck a state renaming a newly-created directory that hasn't been rendered into the file list, causing the app to be effectively unresponsive. Avoid these problems by disallowing execution of the new-folder command while another is in progress. Bug: 632270 Change-Id: I48eb43197403bf85ac78e42a6361c972499b008c Reviewed-on: https://chromium-review.googlesource.com/c/1345687Reviewed-by:Joel Hockey <joelhockey@chromium.org> Reviewed-by:
Noel Gordon <noel@chromium.org> Commit-Queue: Sam McNally <sammc@chromium.org> Cr-Commit-Position: refs/heads/master@{#609978}
Showing
Please register or sign in to comment