From 0226259e2b1b0947370fec2ef3beddcc3884701b Mon Sep 17 00:00:00 2001 From: Leon Riesebos Date: Tue, 5 Apr 2022 23:44:01 -0400 Subject: [PATCH] browser: cleanup datasets panel for empty h5 files this fix makes sure the datasets panel is cleared if an h5 file is empty or the datasets and archive groups are empty --- artiq/browser/files.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/artiq/browser/files.py b/artiq/browser/files.py index 103ca28db..54522e007 100644 --- a/artiq/browser/files.py +++ b/artiq/browser/files.py @@ -197,8 +197,9 @@ class FilesDock(QtWidgets.QDockWidget): logger.warning("dataset '%s' is both in archive and " "outputs", k) rd[k] = (True, v[()]) - if rd: - self.datasets.init(rd) + + self.datasets.init(rd) + self.dataset_changed.emit(info.filePath()) def list_activated(self, idx):