forked from M-Labs/artiq
1
0
Fork 0

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
This commit is contained in:
Leon Riesebos 2022-04-05 23:44:01 -04:00 committed by Sébastien Bourdeauducq
parent c6a7b8a8dd
commit 0226259e2b
1 changed files with 3 additions and 2 deletions

View File

@ -197,8 +197,9 @@ class FilesDock(QtWidgets.QDockWidget):
logger.warning("dataset '%s' is both in archive and " logger.warning("dataset '%s' is both in archive and "
"outputs", k) "outputs", k)
rd[k] = (True, v[()]) rd[k] = (True, v[()])
if rd:
self.datasets.init(rd) self.datasets.init(rd)
self.dataset_changed.emit(info.filePath()) self.dataset_changed.emit(info.filePath())
def list_activated(self, idx): def list_activated(self, idx):