Skip to content

Commit

Permalink
fix prefetch priority (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
m00n620 authored Dec 15, 2023
1 parent 0d2c0fc commit 0c02101
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/cornerstone/src/init.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export default async function init({
commandsManager,
});

let priorityCounter = -100;
let priorityCounter = 1000000;
let enabledElementCounter = 0;
let STUDY_STACKS = [];

Expand Down Expand Up @@ -338,7 +338,7 @@ export default async function init({

setTimeout(() => {
console.log('All elements are enabled. Start prefetching images.');
STUDY_STACKS.forEach(stack => stackPrefetch.enable(stack, 0));
STUDY_STACKS.forEach(stack => stackPrefetch.enable(stack, priorityCounter));
}, 2000);

eventTarget.removeEventListener(EVENTS.ELEMENT_ENABLED, elementEnabledHandler);
Expand Down

0 comments on commit 0c02101

Please sign in to comment.