Remove unnecessary calls to WeakViewHandle::upgrade
This commit is contained in:
parent
94c2eaad23
commit
2b6830c798
19 changed files with 378 additions and 443 deletions
|
@ -104,9 +104,7 @@ impl<V: View> Tooltip<V> {
|
|||
|view, mut cx| async move {
|
||||
cx.background().timer(DEBOUNCE_TIMEOUT).await;
|
||||
state.visible.set(true);
|
||||
if let Some(view) = view.upgrade(&cx) {
|
||||
view.update(&mut cx, |_, cx| cx.notify()).log_err();
|
||||
}
|
||||
view.update(&mut cx, |_, cx| cx.notify()).log_err();
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue