From f107708de3b3d78b52dc0546d52a3709108735a7 Mon Sep 17 00:00:00 2001 From: Smit Barmase Date: Wed, 1 Oct 2025 21:13:00 +0530 Subject: [PATCH] title_bar: Show app menu even when signed out (#39296) Partially closes #39271 Regressed in https://github.com/zed-industries/zed/pull/35375 image Release Notes: - Fixed the top-right dropdown not showing when you're not signed in. --- crates/title_bar/src/title_bar.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/title_bar/src/title_bar.rs b/crates/title_bar/src/title_bar.rs index d326a482650deb65632dd370cbd9565ab544ca2e..5673e3c26e672030764cd02309a8189966be40ba 100644 --- a/crates/title_bar/src/title_bar.rs +++ b/crates/title_bar/src/title_bar.rs @@ -197,9 +197,7 @@ impl Render for TitleBar { user.is_none() && TitleBarSettings::get_global(cx).show_sign_in, |el| el.child(self.render_sign_in_button(cx)), ) - .when(user.is_some(), |parent| { - parent.child(self.render_user_menu_button(cx)) - }) + .child(self.render_app_menu_button(cx)) .into_any_element(), ); @@ -636,7 +634,7 @@ impl TitleBar { }) } - pub fn render_user_menu_button(&mut self, cx: &mut Context) -> impl Element { + pub fn render_app_menu_button(&mut self, cx: &mut Context) -> impl Element { let user_store = self.user_store.read(cx); if let Some(user) = user_store.current_user() { let has_subscription_period = user_store.subscription_period().is_some();