Skip to content

Commit

Permalink
Merge pull request #1040 from knowblesse/main
Browse files Browse the repository at this point in the history
File selection cancel logic added
  • Loading branch information
carsen-stringer authored Feb 11, 2025
2 parents fd6c853 + 7f4b9ea commit d557093
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cellpose/gui/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ def _load_image(parent, filename=None, load_seg=True, load_3D=False):
if filename is None:
name = QFileDialog.getOpenFileName(parent, "Load image")
filename = name[0]
if filename == "":
return
manual_file = os.path.splitext(filename)[0] + "_seg.npy"
load_mask = False
if load_seg:
Expand Down

0 comments on commit d557093

Please sign in to comment.