Skip to content

Commit

Permalink
Update Tree node after updating dev content (#1488)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartmscott authored and andydotxyz committed Nov 1, 2020
1 parent 0e0cc63 commit c65374b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions widget/tree.go
Expand Up @@ -430,21 +430,21 @@ func (r *treeContentRenderer) Layout(size fyne.Size) {
b, ok := r.branches[uid]
if !ok {
b = r.getBranch()
b.update(uid, depth)
if f := r.treeContent.tree.UpdateNode; f != nil {
f(uid, true, b.Content())
}
b.update(uid, depth)
}
branches[uid] = b
n = b.treeNode
} else {
l, ok := r.leaves[uid]
if !ok {
l = r.getLeaf()
l.update(uid, depth)
if f := r.treeContent.tree.UpdateNode; f != nil {
f(uid, false, l.Content())
}
l.update(uid, depth)
}
leaves[uid] = l
n = l.treeNode
Expand Down

0 comments on commit c65374b

Please sign in to comment.