MCPcopy Create free account
hub / github.com/TechJeeper/Printventory / getZipArchiveGroupKey

Function getZipArchiveGroupKey

renderer.js:19055–19059  ·  view source on GitHub ↗
(model)

Source from the content-addressed store, hash-verified

19053 wrapper._saveTimeout = setTimeout(async () => {
19054 try {
19055 const idxToSave = parseInt(wrapper.dataset.currentIndex, 10) || 0;
19056 const thumbs = JSON.parse(wrapper.dataset.thumbnails);
19057 if (thumbs && thumbs.length > idxToSave && idxToSave >= 0) {
19058 await window.electron.setDefaultThumbnail(model.filePath, idxToSave);
19059 const updatedModel = await window.electron.getModel(model.filePath);
19060 if (updatedModel && updatedModel.thumbnail) {
19061 model.thumbnail = updatedModel.thumbnail;
19062 const reordered = parseThumbnails(updatedModel.thumbnail);

Callers

nothing calls this directly

Calls 2

parseZipPathFunction · 0.70

Tested by

no test coverage detected