I'm encountering an issue with Cornerstone tools where they are not reinitializing properly when switching between tabs. I have a setup where multiple DICOM viewers are initialized within tabs, and the tools need to be reinitialized each time a tab is switched. However, it seems that the tools are not being set up correctly for the new active tab, causing the tools to not work as expected.
Steps to Reproduce
Initialize multiple DICOM viewers within tabs.
Switch between the tabs.
Observe that the tools are not reinitialized properly for the newly active tab.
Expected Behavior
The tools should be reinitialized and activated correctly for each tab when it becomes active.
Actual Behavior
The tools are not reinitialized, causing issues with tool activation and functionality in the newly active tab.
Issue: Tools Not Reinitializing for Other Tabs
Description
I'm encountering an issue with Cornerstone tools where they are not reinitializing properly when switching between tabs. I have a setup where multiple DICOM viewers are initialized within tabs, and the tools need to be reinitialized each time a tab is switched. However, it seems that the tools are not being set up correctly for the new active tab, causing the tools to not work as expected.
Steps to Reproduce
Expected Behavior
The tools should be reinitialized and activated correctly for each tab when it becomes active.
Actual Behavior
The tools are not reinitialized, causing issues with tool activation and functionality in the newly active tab.
Code Example
Here is a simplified version of my code: