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

This commit is contained in:
Joe Boccanfuso 2025-05-26 16:08:17 -04:00 committed by GitHub
parent 1873a8405f
commit ebfa1ff5f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -185,7 +185,11 @@ const CornerstoneViewportDownloadForm = ({
toolInstancesArray.forEach(toolInstance => {
if (toolInstance.constructor.isAnnotation !== false) {
toolGroup.setToolEnabled(toolInstance.toolName);
if (show) {
toolGroup.setToolEnabled(toolInstance.toolName);
} else {
toolGroup.setToolDisabled(toolInstance.toolName);
}
}
});
};