mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-25 01:34:02 +00:00
fix up command palette
This commit is contained in:
parent
f5a6a112c8
commit
3bdf05c0cd
1 changed files with 1 additions and 1 deletions
|
@ -86,8 +86,8 @@ impl CommandPalette {
|
|||
let focused_view_id = cx.focused_view_id(window_id).unwrap_or(workspace.id());
|
||||
|
||||
cx.as_mut().defer(move |cx| {
|
||||
let this = cx.add_view(workspace.clone(), |cx| Self::new(focused_view_id, cx));
|
||||
workspace.update(cx, |workspace, cx| {
|
||||
let this = cx.add_view(|cx| Self::new(focused_view_id, cx));
|
||||
workspace.toggle_modal(cx, |_, cx| {
|
||||
cx.subscribe(&this, Self::on_event).detach();
|
||||
this
|
||||
|
|
Loading…
Reference in a new issue