diff --git a/numass-viewer/src/main/kotlin/inr/numass/viewer/StorageView.kt b/numass-viewer/src/main/kotlin/inr/numass/viewer/StorageView.kt index f232b046..81e53a1d 100644 --- a/numass-viewer/src/main/kotlin/inr/numass/viewer/StorageView.kt +++ b/numass-viewer/src/main/kotlin/inr/numass/viewer/StorageView.kt @@ -134,10 +134,10 @@ class StorageView(private val context: Context = Global.instance()) : View(title center { splitpane { treeview { - isShowRoot = false + //isShowRoot = false storageProperty.onChange { if (it != null) { - root = TreeItem(Container("root", it)) + root = TreeItem(Container(it.name, it)) root.isExpanded = true populate { parent -> val value = parent.value.content @@ -179,7 +179,7 @@ class StorageView(private val context: Context = Global.instance()) : View(title } } contextMenu = ContextMenu() - contextMenu.item("Clear"){ + contextMenu.item("Clear all"){ action { this@cellFormat.treeItem.uncheckAll() }