markdown: Move open_url
to the MarkdownElement
as on_url_click
(#28269)
Release Notes: - N/A --------- Co-authored-by: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
parent
d3abc61728
commit
0414908c4a
6 changed files with 201 additions and 194 deletions
|
@ -792,15 +792,11 @@ impl editor::Addon for AgentDiffAddon {
|
|||
|
||||
pub struct AgentDiffToolbar {
|
||||
agent_diff: Option<WeakEntity<AgentDiff>>,
|
||||
_workspace: WeakEntity<Workspace>,
|
||||
}
|
||||
|
||||
impl AgentDiffToolbar {
|
||||
pub fn new(workspace: &Workspace, _: &mut Context<Self>) -> Self {
|
||||
Self {
|
||||
agent_diff: None,
|
||||
_workspace: workspace.weak_handle(),
|
||||
}
|
||||
pub fn new() -> Self {
|
||||
Self { agent_diff: None }
|
||||
}
|
||||
|
||||
fn agent_diff(&self, _: &App) -> Option<Entity<AgentDiff>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue