MCPcopy Index your code
hub / github.com/spicetify/cli / onChangeStatus

Function onChangeStatus

jsHelper/sidebarConfig.js:109–114  ·  view source on GitHub ↗
(item, status)

Source from the content-addressed store, hash-verified

107 }
108
109 function onChangeStatus(item, status) {
110 container.remove();
111 const curPos = ordered.findIndex((e) => e[0] === item);
112 ordered[curPos][1] = ordered[curPos][1] === status ? SHOW : status;
113 appendItems();
114 }
115
116 YLXSidebarState = Spicetify.Platform.LocalStorageAPI.getItem("ylx-sidebar-state");
117 if (YLXSidebarState === 1) document.querySelector(".main-yourLibraryX-collapseButton > button")?.click();

Callers 1

injectInteractionFunction · 0.70

Calls 1

appendItemsFunction · 0.70

Tested by

no test coverage detected