forked from napari/napari
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the _is_created assignment to the top (napari#5078)
# Description The `_is_creating` flag is set too late in the drawing process. If one clicks two times while `polygon` or `path` is selected, an error is thrown. I also added a test and a fix for this scenario. ## Type of change - [X] Bug-fix (non-breaking change which fixes an issue) - [X] New feature (non-breaking change which adds functionality) --------- Co-authored-by: Markus Stabrin <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Juan Nunez-Iglesias <[email protected]> Co-authored-by: Peter Sobolewski <[email protected]> Co-authored-by: Genevieve Buckley <[email protected]> Co-authored-by: Andy Sweet <[email protected]> Co-authored-by: Grzegorz Bokota <[email protected]> Co-authored-by: Wouter-Michiel Vierdag <[email protected]> Co-authored-by: Wouter-Michiel Vierdag <[email protected]>
- Loading branch information
1 parent
157b144
commit c51e291
Showing
2 changed files
with
74 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters