From dd32bb6c7483fd3074fe1fe7a1235452b7c99d7d Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Fri, 17 Oct 2025 13:03:29 +0200 Subject: [PATCH] title_bar: Render chevron if `show_user_picture` is disabled (#40474) Closes https://github.com/zed-industries/zed/issues/40460 Release Notes: - N/A *or* Added/Fixed/Improved ... --- crates/title_bar/src/title_bar.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/crates/title_bar/src/title_bar.rs b/crates/title_bar/src/title_bar.rs index f38fd7ed59ec56a3faaad3b6c07f9e56d1defaff..ec98e0d2d9cf7d941671c282164ad3e4e28b661d 100644 --- a/crates/title_bar/src/title_bar.rs +++ b/crates/title_bar/src/title_bar.rs @@ -761,15 +761,10 @@ impl TitleBar { .into() }) .map(|this| { - if is_signed_in { + if is_signed_in && TitleBarSettings::get_global(cx).show_user_picture { this.trigger_with_tooltip( - ButtonLike::new("user-menu").children( - TitleBarSettings::get_global(cx) - .show_user_picture - .then(|| user_avatar.clone()) - .flatten() - .map(|avatar| Avatar::new(avatar)), - ), + ButtonLike::new("user-menu") + .children(user_avatar.clone().map(|avatar| Avatar::new(avatar))), Tooltip::text("Toggle User Menu"), ) } else {