Defer first update active buffer for conversation (#10564)
This fixes when the workspace is not actually available for a `.read(cx)`. Release Notes: - Fix a panic when quoting a selection before the assistant panel has been started Co-authored-by: Conrad Irwin <conrad@zed.dev>
This commit is contained in:
parent
f28fde5e58
commit
5037f466f6
1 changed files with 1 additions and 1 deletions
|
@ -2065,7 +2065,7 @@ impl ConversationEditor {
|
||||||
workspace: workspace.downgrade(),
|
workspace: workspace.downgrade(),
|
||||||
_subscriptions,
|
_subscriptions,
|
||||||
};
|
};
|
||||||
this.update_active_buffer(workspace, cx);
|
cx.defer(|this, cx| this.update_active_buffer(workspace, cx));
|
||||||
this.update_message_headers(cx);
|
this.update_message_headers(cx);
|
||||||
this
|
this
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue