Skip to content

Commit

Permalink
parent_widget
Browse files Browse the repository at this point in the history
  • Loading branch information
saarah815 committed Aug 6, 2024
2 parents 9b5c274 + fbc8ec7 commit bdb41fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion brainglobe_registration/registration_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def __init__(self, napari_viewer: Viewer):

self.layout().itemAt(1).widget().collapse(animate=False)

check_atlas_installed()
check_atlas_installed(self)

def _on_atlas_dropdown_index_changed(self, index):
# Hacky way of having an empty first dropdown
Expand Down
2 changes: 1 addition & 1 deletion brainglobe_registration/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def calculate_rotated_bounding_box(
)


def check_atlas_installed():
def check_atlas_installed(parent_widget: QWidget):
"""
Function checks if user has any atlases installed. If not, message box
appears in napari, directing user to download atlases via attached links.
Expand Down

0 comments on commit bdb41fa

Please sign in to comment.