From fc45576cccfa7ae41e957f1a5bbb8dc54e022463 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Mon, 11 Dec 2017 16:43:32 +0300 Subject: [PATCH] Minor fixes --- .../src/main/kotlin/inr/numass/viewer/StorageView.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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() }