Fix typo
This commit is contained in:
parent
5aa42509db
commit
1c9d03aca6
1 changed files with 3 additions and 3 deletions
|
@ -140,7 +140,7 @@ impl Render for TitleBar {
|
||||||
|
|
||||||
let mut render_project_items =
|
let mut render_project_items =
|
||||||
title_bar_settings.show_branch_name || title_bar_settings.show_project_items;
|
title_bar_settings.show_branch_name || title_bar_settings.show_project_items;
|
||||||
let show_seperate_menus = show_menus(cx) && render_project_items;
|
let show_separate_menus = show_menus(cx) && render_project_items;
|
||||||
|
|
||||||
let mut children = Vec::new();
|
let mut children = Vec::new();
|
||||||
|
|
||||||
|
@ -152,7 +152,7 @@ impl Render for TitleBar {
|
||||||
.when_some(
|
.when_some(
|
||||||
self.application_menu
|
self.application_menu
|
||||||
.clone()
|
.clone()
|
||||||
.filter(|_| !show_seperate_menus),
|
.filter(|_| !show_separate_menus),
|
||||||
|title_bar, menu| {
|
|title_bar, menu| {
|
||||||
render_project_items &=
|
render_project_items &=
|
||||||
!menu.read_with(cx, |menu, cx| menu.all_menus_shown(cx));
|
!menu.read_with(cx, |menu, cx| menu.all_menus_shown(cx));
|
||||||
|
@ -203,7 +203,7 @@ impl Render for TitleBar {
|
||||||
.into_any_element(),
|
.into_any_element(),
|
||||||
);
|
);
|
||||||
|
|
||||||
if show_seperate_menus {
|
if show_separate_menus {
|
||||||
self.platform_titlebar.update(cx, |this, _| {
|
self.platform_titlebar.update(cx, |this, _| {
|
||||||
this.set_children(
|
this.set_children(
|
||||||
self.application_menu
|
self.application_menu
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue