chore: update gpui
This commit is contained in:
@@ -266,10 +266,10 @@ where
|
||||
self.set_loading(true, window, cx);
|
||||
let search = self.delegate.perform_search(&text, window, cx);
|
||||
|
||||
self._search_task = cx.spawn_in(window, |this, mut window| async move {
|
||||
self._search_task = cx.spawn_in(window, async move |this, window| {
|
||||
search.await;
|
||||
|
||||
_ = this.update_in(&mut window, |this, _, _| {
|
||||
_ = this.update_in(window, |this, _, _| {
|
||||
this.vertical_scroll_handle
|
||||
.scroll_to_item(0, ScrollStrategy::Top);
|
||||
this.last_query = Some(text);
|
||||
@@ -277,7 +277,7 @@ where
|
||||
|
||||
// Always wait 100ms to avoid flicker
|
||||
Timer::after(Duration::from_millis(100)).await;
|
||||
_ = this.update_in(&mut window, |this, window, cx| {
|
||||
_ = this.update_in(window, |this, window, cx| {
|
||||
this.set_loading(false, window, cx);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user