Close the menu when selecting a different layer in the syntax tree view
This commit is contained in:
parent
56b749788f
commit
b4f3a88b38
1 changed files with 1 additions and 0 deletions
|
@ -530,6 +530,7 @@ impl SyntaxTreeToolbarItemView {
|
||||||
let layer = snapshot.syntax_layers().nth(layer_ix)?;
|
let layer = snapshot.syntax_layers().nth(layer_ix)?;
|
||||||
buffer_state.active_layer = Some(layer.to_owned());
|
buffer_state.active_layer = Some(layer.to_owned());
|
||||||
view.selected_descendant_ix = None;
|
view.selected_descendant_ix = None;
|
||||||
|
self.menu_open = false;
|
||||||
cx.notify();
|
cx.notify();
|
||||||
Some(())
|
Some(())
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue