MCPcopy
hub / github.com/stemdeckapp/stemdeck / libraryUnavailableCount

Function libraryUnavailableCount

static/js/catalog.js:1740–1744  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1738
1739// Count library tracks (excluding Trash) whose audio is gone.
1740function 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.

Callers 1

Calls 1

getTrashFolderFunction · 0.85

Tested by

no test coverage detected