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

Function resetHorizontalScroll

renderer.js:4571–4574  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4569 const ADDITIONAL_SCAN_TYPE_IDS = ['3ds', 'amf', 'blender', 'dae', 'dxf', 'dwg', 'fbx', 'f3d', 'f3z', 'gcode', 'igs', 'lys', 'obj', 'ply', 'step', 'svg', 'x3d'];
4570 try {
4571 const scanTypesRaw = await window.electron.getSetting('scanAdditionalFileTypes');
4572 const scanTypes = (scanTypesRaw && typeof scanTypesRaw === 'string') ? JSON.parse(scanTypesRaw) : [];
4573 const scanSet = new Set(Array.isArray(scanTypes) ? scanTypes : []);
4574 ADDITIONAL_SCAN_TYPE_IDS.forEach(id => {
4575 const el = document.getElementById('scan-type-' + id);
4576 if (el) el.checked = scanSet.has(id);
4577 });

Callers 1

createServerMenuBarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected