Skip to content

Commit

Permalink
Update brainglobe_registration/registration_widget.py
Browse files Browse the repository at this point in the history
Co-authored-by: Igor Tatarnikov <[email protected]>
  • Loading branch information
saarah815 and IgorTatarnikov authored Aug 8, 2024
1 parent 989d1f4 commit d6a2a7b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions brainglobe_registration/registration_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,8 @@ def _handle_layer_deletion(self, event: Event):

# Check if deleted layer is the atlas reference / atlas annotations
if (
hasattr(self, "_atlas_data_layer")
and self._atlas_data_layer == deleted_layer
):
self._delete_atlas_layers()

if (
hasattr(self, "_atlas_annotations_layer")
and self._atlas_annotations_layer == deleted_layer
self._atlas_data_layer == deleted_layer
or self._atlas_annotations_layer == deleted_layer
):
self._delete_atlas_layers()

Expand Down

0 comments on commit d6a2a7b

Please sign in to comment.