Close the menu when selecting a different layer in the syntax tree view
This commit is contained in:
@@ -530,6 +530,7 @@ impl SyntaxTreeToolbarItemView {
|
||||
let layer = snapshot.syntax_layers().nth(layer_ix)?;
|
||||
buffer_state.active_layer = Some(layer.to_owned());
|
||||
view.selected_descendant_ix = None;
|
||||
self.menu_open = false;
|
||||
cx.notify();
|
||||
Some(())
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user