fix(capture): Disable or enable the tool group based on the show flag. (#5069)

This commit is contained in:
Joe Boccanfuso authored and GitHub committed 2025-05-26 16:08:17 -04:00
1 parent 1873a8405f
commit ebfa1ff5f2
1 file changed
+5 -1
@@ -185,7 +185,11 @@ const CornerstoneViewportDownloadForm = ({
toolInstancesArray.forEach(toolInstance => { toolInstancesArray.forEach(toolInstance => {
if (toolInstance.constructor.isAnnotation !== false) { if (toolInstance.constructor.isAnnotation !== false) {
toolGroup.setToolEnabled(toolInstance.toolName); if (show) {
toolGroup.setToolEnabled(toolInstance.toolName);
} else {
toolGroup.setToolDisabled(toolInstance.toolName);
}
} }
}); });
}; };