()
| 1738 | |
| 1739 | // Count library tracks (excluding Trash) whose audio is gone. |
| 1740 | function libraryUnavailableCount() { |
| 1741 | const trashIds = new Set(getTrashFolder()?.items || []); |
| 1742 | return Object.entries(tracks) |
| 1743 | .filter(([id, t]) => !trashIds.has(id) && t.status === "unavailable").length; |
| 1744 | } |
| 1745 | |
| 1746 | // Update the editor's footer line with the out-of-sync count (red) or an |
| 1747 | // all-clear message. Safe no-op when the editor isn't open. |
no test coverage detected