From d678efe7ddd01ad5635d76bbba7c384d64f5a26f Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Mon, 11 Dec 2023 09:29:10 -0700 Subject: [PATCH] Fix some action registrations --- crates/gpui2/src/action.rs | 2 ++ crates/terminal_view2/src/terminal_panel.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/gpui2/src/action.rs b/crates/gpui2/src/action.rs index bf03c87ae9..54682a30ef 100644 --- a/crates/gpui2/src/action.rs +++ b/crates/gpui2/src/action.rs @@ -183,6 +183,8 @@ macro_rules! impl_actions { Ok(std::boxed::Box::new(gpui::serde_json::from_value::(value)?)) } ); + + gpui::register_action!($name); )* }; } diff --git a/crates/terminal_view2/src/terminal_panel.rs b/crates/terminal_view2/src/terminal_panel.rs index 3d88b89d9b..fa266ceb6c 100644 --- a/crates/terminal_view2/src/terminal_panel.rs +++ b/crates/terminal_view2/src/terminal_panel.rs @@ -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(