From b5dc9fd640caafca12de7240d0eabd939879603d 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 e03f26483..b29ad1ccb 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):