Pass WindowContext
to ViewHandle::is_focused
This commit is contained in:
parent
74ca223114
commit
98dce89379
3 changed files with 8 additions and 9 deletions
|
@ -161,7 +161,7 @@ impl View for CopilotButton {
|
|||
));
|
||||
let window_id = cx.window_id();
|
||||
let task = task.to_owned();
|
||||
cx.spawn(|this, mut cx| async move {
|
||||
cx.spawn_weak(|_this, mut cx| async move {
|
||||
task.await;
|
||||
cx.update(|cx| {
|
||||
if let Some(copilot) = Copilot::global(cx) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue