This commit is contained in:
Matt Soucy 2020-07-03 21:26:41 -04:00
parent e94b2e1d4b
commit 6569ec619a

View File

@ -322,6 +322,7 @@ class SummaryModel(val db : Database) {
private fun transformNode(tree : MutableMap<Int, ProjectTree>, dirId : Int) : ProjectTreeNode {
val result = ProjectTreeNode()
tree[dirId]?.let { dirdict ->
result.name = dirdict.name
result.dirs = mutableListOf<ProjectTreeNode>().apply {
dirdict.dirs.forEach {
add(transformNode(tree, it))