- Fix action registrations

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2023-12-11 09:48:57 -07:00 committed by GitHub
commit 59d0feafc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

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);
)*
};
}

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(