Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

title_bar: Show app menu even when signed out (#39296)

Smit Barmasef107708de3b3
diff --git a/crates/title_bar/src/title_bar.rs b/crates/title_bar/src/title_bar.rs
index d326a482650..5673e3c26e6 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<Self>) -> impl Element {
+ pub fn render_app_menu_button(&mut self, cx: &mut Context<Self>) -> 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();