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

Function getGridModelDedupeKey

renderer.js:1327–1333  ·  view source on GitHub ↗

Stable identity for grid rows: same file path = one row (handles duplicate DB ids).

(model)

Source from the content-addressed store, hash-verified

1325let contextUseCount = 0;
1326const MAX_CONTEXT_USES = 20; // Reset context after this many uses
1327const MAX_CONTEXT_REUSE_COUNT = 100; // Add this missing constant
1328
1329// Debounce total-count IPC: progressive library load calls updateModelCounts every chunk; one fetch is enough.
1330let updateTotalCountDebounce = null;
1331function scheduleTotalModelCountRefresh() {
1332 if (updateTotalCountDebounce) clearTimeout(updateTotalCountDebounce);
1333 updateTotalCountDebounce = setTimeout(async () => {
1334 updateTotalCountDebounce = null;
1335 try {
1336 const totalCount = await window.electron.getTotalModelCount();

Callers 2

Calls 1

Tested by

no test coverage detected