fix: cache thumbnail in display set (#4782)

This commit is contained in:
Bill Wallace authored and GitHub committed 2025-02-18 18:19:09 -05:00
1 parent d26c9551b6
commit 2410c6a509
10 files changed
+47 -54

No files matched your search

@@ -25,6 +25,14 @@ export function getToolbarModule({ servicesManager }: withAppTypes) {
};
}
const activeSegmentation = segmentationService.getActiveSegmentation(viewportId);
if (!Object.keys(activeSegmentation.segments).length) {
return {
disabled: true,
disabledText: 'Add segment to enable this tool',
};
}
const toolGroup = toolGroupService.getToolGroupForViewport(viewportId);
if (!toolGroup) {