Skip to content

Commit

Permalink
Remove warnings related to events (#35)
Browse files Browse the repository at this point in the history
Co-authored-by: Juan Nunez-Iglesias <[email protected]>
  • Loading branch information
GenevieveBuckley and jni authored Jul 15, 2022
1 parent 9514d25 commit 692b090
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/zarpaint/_zarpaint.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@


@tz.curry
def _set_default_labels_path(widget, source_image_event):
source_image = source_image_event.value
def _set_default_labels_path(widget, source_image):
if (hasattr(source_image, 'source') # napari <0.4.8
and source_image.source.path is not None):
source_path = pathlib.Path(source_image.source.path)
Expand Down

0 comments on commit 692b090

Please sign in to comment.