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

Function setCatalogView

static/js/catalog.js:491–499  ·  view source on GitHub ↗
(view)

Source from the content-addressed store, hash-verified

489}
490
491function setCatalogView(view) {
492 catalogView = ["trash", "favorites"].includes(view) ? view : "library";
493 const app = document.querySelector(".app");
494 if (catalogView === "trash" || catalogView === "favorites") {
495 app?.classList.remove("cat-collapsed");
496 localStorage.setItem("stemdeck.catalog.collapsed", "0");
497 }
498 render();
499}
500
501function applyStoredStemSelection(track) {
502 const stored = track.selectedStems || track.stems || [];

Callers 2

wireRailLibraryDropFunction · 0.85
wireCatalogRailViewsFunction · 0.85

Calls 1

renderFunction · 0.70

Tested by

no test coverage detected