Remember the forcefully disabled tool and reenable it if possible #6362
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR tackles the problem described in #6293. When shortly disabling the segmentation layer via shortcut
3
to only see the color data the volume tool was deselected. The user then had to manually reselect the previous volume tool. To speed up annotating, the forcefully disabled tool is now remembered and reselected again if it is no longer disabled and no other tool has been selected after this tool was disabled.URL of deployed dev instance (used for testing):
Steps to test:
3
on the keyboard to disable the segmentation layer.3
again and the brush tool should now be automatically selected.3
, and then select the skeleton tool. Hitting3
again should not select the brush tool.3
, select the skeleton tool, and then select the move tool again. Hitting3
again should not select the brush tool as the user intentionally changed the tools in between disabling and enabling the segmentation layer.Issues:
(Please delete unneeded items, merge only when none are left open)