Only show breadcrumbs for terminals when there's a title (#20997)
Closes https://github.com/zed-industries/zed/issues/20475 Release Notes: - Fixed terminal title and breadcrumbs behavior --------- Co-authored-by: Thorsten Ball <thorsten@zed.dev>
This commit is contained in:
parent
395e25be25
commit
5ff49db92f
12 changed files with 43 additions and 23 deletions
|
@ -278,7 +278,7 @@ pub trait Item: FocusableView + EventEmitter<Self::Event> {
|
|||
None
|
||||
}
|
||||
|
||||
fn breadcrumb_location(&self) -> ToolbarItemLocation {
|
||||
fn breadcrumb_location(&self, _: &AppContext) -> ToolbarItemLocation {
|
||||
ToolbarItemLocation::Hidden
|
||||
}
|
||||
|
||||
|
@ -827,7 +827,7 @@ impl<T: Item> ItemHandle for View<T> {
|
|||
}
|
||||
|
||||
fn breadcrumb_location(&self, cx: &AppContext) -> ToolbarItemLocation {
|
||||
self.read(cx).breadcrumb_location()
|
||||
self.read(cx).breadcrumb_location(cx)
|
||||
}
|
||||
|
||||
fn breadcrumbs(&self, theme: &Theme, cx: &AppContext) -> Option<Vec<BreadcrumbText>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue