Fix bottom thread repeating indefinitely

This commit is contained in:
Joscha 2022-07-19 21:50:53 +02:00
parent 3af1193869
commit e707525240

View file

@ -102,6 +102,7 @@ impl<M: Msg, S: MsgStore<M>> InnerTreeViewState<M, S> {
fn layout_tree(frame: &mut Frame, tree: Tree<M>) -> Blocks<M::Id> {
let mut blocks = Blocks::new();
Self::layout_subtree(frame, &tree, 0, tree.root(), &mut blocks);
blocks.roots = Some((tree.root().clone(), tree.root().clone()));
blocks
}