UI: Clear Drawings operator displayed only if the tool is annotation
Description of change
- Moved the operator display in the layout under the condition that the tool is annotate
- Made the tool test more flexible with annotate_related tools (e.g. line)
How to test it
- Start Stax
- Clear drawing doesn't appear any more with picker selected
Checklist
Please check if your MR fulfills the following requirements:
-
Unit tests have been added, if needed -
Documentation have been updated, if needed -
Build was run locally and any changes were pushed -
Lint has passed locally without error -
Package.py have been updated, if needed -
CHANGELOG.md have been updated, if needed -
Version numer has been tagged, if needed
FYI: @awesome_dev_too
Edited by Félix David