Pop node from dispatch tree during cx.paint_view
Co-Authored-By: Thorsten <thorsten@zed.dev>
This commit is contained in:
parent
4ff514ca7e
commit
05d05b051b
1 changed files with 1 additions and 0 deletions
|
@ -2034,6 +2034,7 @@ impl<'a> WindowContext<'a> {
|
|||
.dispatch_tree
|
||||
.push_node(None, None, Some(view_id));
|
||||
let result = f(self);
|
||||
self.window.next_frame.dispatch_tree.pop_node();
|
||||
self.window.next_frame.view_stack.pop();
|
||||
result
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue