This commit is contained in:
Joseph T. Lyons
2023-12-06 23:15:04 -05:00
parent ee45db8a78
commit 79e0d8ce3b
4 changed files with 57 additions and 24 deletions
+2 -2
View File
@@ -17,11 +17,11 @@ actions!(
);
pub fn init(cx: &mut AppContext) {
// TODO - a way to combine these two into one?
// TODO: a way to combine these two into one?
cx.observe_new_views(feedback_modal::FeedbackModal::register)
.detach();
cx.observe_new_views(|workspace: &mut Workspace, _cx| {
cx.observe_new_views(|workspace: &mut Workspace, _| {
workspace
.register_action(|_, _: &CopySystemSpecsIntoClipboard, cx| {
let specs = SystemSpecs::new(&cx).to_string();