Add basic test for editor context menu
This commit is contained in:
@@ -124,6 +124,10 @@ impl ContextMenu {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn visible(&self) -> bool {
|
||||
self.visible
|
||||
}
|
||||
|
||||
fn action_dispatched(&mut self, action_id: TypeId, cx: &mut ViewContext<Self>) {
|
||||
if let Some(ix) = self
|
||||
.items
|
||||
|
||||
Reference in New Issue
Block a user