Rename ListEntry
to ListItem
(#3371)
This PR renames the `ListEntry` component to `ListItem` to better reflect its intent. Release Notes: - N/A
This commit is contained in:
parent
4f4ef4a357
commit
652e3b0bb6
5 changed files with 80 additions and 83 deletions
|
@ -31,7 +31,7 @@ use workspace::{
|
|||
notifications::NotifyResultExt,
|
||||
register_deserializable_item,
|
||||
searchable::{SearchEvent, SearchOptions, SearchableItem},
|
||||
ui::{ContextMenu, Icon, IconElement, Label, ListEntry},
|
||||
ui::{ContextMenu, Icon, IconElement, Label, ListItem},
|
||||
CloseActiveItem, NewCenterTerminal, Pane, ToolbarItemLocation, Workspace, WorkspaceId,
|
||||
};
|
||||
|
||||
|
@ -300,14 +300,11 @@ impl TerminalView {
|
|||
cx: &mut ViewContext<Self>,
|
||||
) {
|
||||
self.context_menu = Some(ContextMenu::build(cx, |menu, _| {
|
||||
menu.action(
|
||||
ListEntry::new("clear", Label::new("Clear")),
|
||||
Box::new(Clear),
|
||||
)
|
||||
.action(
|
||||
ListEntry::new("close", Label::new("Close")),
|
||||
Box::new(CloseActiveItem { save_intent: None }),
|
||||
)
|
||||
menu.action(ListItem::new("clear", Label::new("Clear")), Box::new(Clear))
|
||||
.action(
|
||||
ListItem::new("close", Label::new("Close")),
|
||||
Box::new(CloseActiveItem { save_intent: None }),
|
||||
)
|
||||
}));
|
||||
dbg!(&position);
|
||||
// todo!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue