Skip to content

Commit

Permalink
Merge pull request #18 from fractal-napari-plugins-collection/16-remo…
Browse files Browse the repository at this point in the history
…ve-100-loading-indicator-when-wells-list-is-loaded

Make progress bar invisible after loading is complete
  • Loading branch information
fdsteffen authored Sep 17, 2024
2 parents 391ad91 + 7d6f187 commit 7388b12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/napari_ome_zarr_navigator/img_browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(self, viewer: "napari.viewer.Viewer"):
self.roi_loader = None
self.roi_widget = None
self.filter_widget = None
self.progress = ProgressBar()
self.progress = ProgressBar(visible=False)

super().__init__(
widgets=[
Expand Down Expand Up @@ -251,6 +251,7 @@ def load_table(self):
wells_str = [f"{w[0]}{w[1]}" for w in wells]
tbl = []
n = len(wells)
self.progress.visible = True
self.progress.min = 0
self.progress.max = n
self.progress.value = 0
Expand All @@ -269,6 +270,7 @@ def load_table(self):
f'The table "{name}" was not found in well {row_alpha}{col}'
)
self.progress.value += 1
self.progress.visible = False
if tbl:
if len(wells_str) > 1:
return ad.concat(tbl, keys=wells_str, index_unique="-")
Expand Down

0 comments on commit 7388b12

Please sign in to comment.