Remove ViewContext::dispatch_action

This commit is contained in:
Antonio Scandurra
2023-05-01 16:27:36 +02:00
parent d815fc88ae
commit c4472b0786
41 changed files with 574 additions and 670 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ pub fn init(cx: &mut AppContext) {
OutlineView::init(cx);
}
fn toggle(workspace: &mut Workspace, _: &Toggle, cx: &mut ViewContext<Workspace>) {
pub fn toggle(workspace: &mut Workspace, _: &Toggle, cx: &mut ViewContext<Workspace>) {
if let Some(editor) = workspace
.active_item(cx)
.and_then(|item| item.downcast::<Editor>())