Implement feedback action
OpenZedCommunityRepo
This commit is contained in:
parent
78e1c0f9c3
commit
dec4cfa0b4
1 changed files with 5 additions and 10 deletions
|
@ -1,6 +1,5 @@
|
||||||
use gpui::{actions, AppContext, ClipboardItem, PromptLevel};
|
use gpui::{actions, AppContext, ClipboardItem, PromptLevel};
|
||||||
use system_specs::SystemSpecs;
|
use system_specs::SystemSpecs;
|
||||||
// use system_specs::SystemSpecs;
|
|
||||||
use workspace::Workspace;
|
use workspace::Workspace;
|
||||||
|
|
||||||
pub mod deploy_feedback_button;
|
pub mod deploy_feedback_button;
|
||||||
|
@ -48,15 +47,11 @@ pub fn init(cx: &mut AppContext) {
|
||||||
urlencoding::encode(&SystemSpecs::new(&cx).to_string())
|
urlencoding::encode(&SystemSpecs::new(&cx).to_string())
|
||||||
);
|
);
|
||||||
cx.open_url(&url);
|
cx.open_url(&url);
|
||||||
|
})
|
||||||
|
.register_action(move |_, _: &OpenZedCommunityRepo, cx| {
|
||||||
|
let url = "https://github.com/zed-industries/community";
|
||||||
|
cx.open_url(&url);
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.detach();
|
.detach();
|
||||||
|
|
||||||
// TODO
|
|
||||||
// cx.add_global_action(open_zed_community_repo);
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn open_zed_community_repo(_: &OpenZedCommunityRepo, cx: &mut AppContext) {
|
|
||||||
let url = "https://github.com/zed-industries/community";
|
|
||||||
cx.open_url(&url);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue