Fix some action registrations

This commit is contained in:
Conrad Irwin committed 2023-12-11 09:29:10 -07:00
1 parent c5367e3085
commit d678efe7dd
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -183,6 +183,8 @@ macro_rules! impl_actions {
Ok(std::boxed::Box::new(gpui::serde_json::from_value::<Self>(value)?))
}
);
gpui::register_action!($name);
)*
};
}
+1 -1
View File
@@ -24,7 +24,7 @@ use anyhow::Result;
const TERMINAL_PANEL_KEY: &'static str = "TerminalPanel";
actions!(terminal_view, [ToggleFocus]);
actions!(terminal_panel, [ToggleFocus]);
pub fn init(cx: &mut AppContext) {
cx.observe_new_views(