From 7d6f187f44a1cf37e536e30a7684477f9f82eef6 Mon Sep 17 00:00:00 2001 From: fdsteffen <35061965+fdsteffen@users.noreply.github.com> Date: Mon, 16 Sep 2024 23:04:56 +0200 Subject: [PATCH] Make progress bar invisible after loading is complete --- src/napari_ome_zarr_navigator/img_browser.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/napari_ome_zarr_navigator/img_browser.py b/src/napari_ome_zarr_navigator/img_browser.py index f5bdc9d..784195c 100644 --- a/src/napari_ome_zarr_navigator/img_browser.py +++ b/src/napari_ome_zarr_navigator/img_browser.py @@ -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=[ @@ -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 @@ -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="-")