Allow using context in the placeholder_text
method
This commit is contained in:
parent
cf3b875922
commit
c29ea9bdbc
17 changed files with 24 additions and 22 deletions
|
@ -9,7 +9,7 @@ use gpui::{
|
|||
use picker::{Picker, PickerDelegate};
|
||||
use project::Inventory;
|
||||
use task::{oneshot_source::OneshotSource, Task};
|
||||
use ui::{v_flex, HighlightedLabel, ListItem, ListItemSpacing, Selectable};
|
||||
use ui::{v_flex, HighlightedLabel, ListItem, ListItemSpacing, Selectable, WindowContext};
|
||||
use util::ResultExt;
|
||||
use workspace::{ModalView, Workspace};
|
||||
|
||||
|
@ -115,7 +115,7 @@ impl PickerDelegate for TasksModalDelegate {
|
|||
self.selected_index = ix;
|
||||
}
|
||||
|
||||
fn placeholder_text(&self) -> Arc<str> {
|
||||
fn placeholder_text(&self, _cx: &mut WindowContext) -> Arc<str> {
|
||||
self.placeholder_text.clone()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue