mirror of
https://github.com/lights0123/n-link.git
synced 2026-08-07 18:23:28 +00:00
File operations are pushed onto the device's command queue and run asynchronously, but FileBrowser only re-listed the directory when dev, path, or updateIndex changed -- and updateIndex was only ever bumped by a breadcrumb click. The listing stayed stale after an upload, delete, rename, or directory creation. Watch the device's running flag and queue length, and re-list on the busy -> idle transition so a multi-file delete refreshes once at the end rather than per queued command. The refresh is silent: it skips the loading flag so the current icons stay on screen instead of flashing the spinner, and keeps the old listing if the re-fetch fails. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| assets | ||
| components | ||
| .eslintrc.js | ||
| package.json | ||
| postcss.config.js | ||
| tailwind.config.js | ||
| tsconfig.json | ||