Minor fixes

This commit is contained in:
Alexander Nozik 2017-12-11 16:43:32 +03:00
parent fa26703a58
commit fc45576ccc

View File

@ -134,10 +134,10 @@ class StorageView(private val context: Context = Global.instance()) : View(title
center {
splitpane {
treeview<Container> {
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()
}