OHIF-156: Clicking the active tool icon should not reset to the default tool
This commit is contained in:
parent
351eb6164c
commit
3ad813be9e
@ -76,11 +76,7 @@ Template.toolbarSectionButton.events({
|
||||
const elements = instance.$('.imageViewerViewport');
|
||||
|
||||
const activeTool = toolManager.getActiveTool();
|
||||
if (tool === activeTool) {
|
||||
const defaultTool = toolManager.getDefaultTool();
|
||||
OHIF.log.info('Setting active tool to: ' + defaultTool);
|
||||
toolManager.setActiveTool(defaultTool, elements);
|
||||
} else {
|
||||
if (tool !== activeTool) {
|
||||
OHIF.log.info('Setting active tool to: ' + tool);
|
||||
toolManager.setActiveTool(tool, elements);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user