From cf13576ed9925ddb9b26abe70ca06f5eba12f708 Mon Sep 17 00:00:00 2001 From: "zed-zippy[bot]" <234243425+zed-zippy[bot]@users.noreply.github.com> Date: Mon, 12 Jan 2026 10:56:47 +0000 Subject: [PATCH] Always show worktree trust, even if other title bar items are hidden with settings (#46606) (cherry-pick to preview) (#46607) Cherry-pick of #46606 to preview ---- Closes https://github.com/zed-industries/zed/discussions/46595 Release Notes: - Fixed "show project items" keeping worktree trust title bar element hidden Co-authored-by: Kirill Bulatov --- crates/title_bar/src/title_bar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/title_bar/src/title_bar.rs b/crates/title_bar/src/title_bar.rs index 6693b6acb0b37416a8261e2d004a35366469524b..96d3935e7d3ae9404e71c54272e42933a6a85a79 100644 --- a/crates/title_bar/src/title_bar.rs +++ b/crates/title_bar/src/title_bar.rs @@ -161,11 +161,11 @@ impl Render for TitleBar { title_bar.child(menu) }, ) + .children(self.render_restricted_mode(cx)) .when(render_project_items, |title_bar| { title_bar .when(title_bar_settings.show_project_items, |title_bar| { title_bar - .children(self.render_restricted_mode(cx)) .children(self.render_project_host(cx)) .child(self.render_project_name(cx)) })