Make error panels appear immediately
When a file operation error occurs, the progress panel that was providing visual feedback is changed to an error panel. Since file operations that take less than 2 seconds don't show the progress panels, the side-effect is the error panel won't display until the 2 second timeout happens. Call the attachPanel() method immediately when an error status is sent and add a check in the display panel custom element to ignore attachPanel() calls when the panel is already attached. Test needed. Bug: 1009853 Change-Id: I0829c3747240d35d81607385dab17e57273aa84d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1833022 Commit-Queue: Alex Danilo <adanilo@chromium.org> Reviewed-by:Noel Gordon <noel@chromium.org> Cr-Commit-Position: refs/heads/master@{#702262}
Showing
Please register or sign in to comment