Fix "Open a file or project to get started" placeholder text not always shown (#26044)
Check that there are no `visible_worktrees` rather than checking `worktrees` when deciding whether to display the "Open a file or project to get started" text Closes #25395 Release Notes: - Fixed the "Open a file or project to get started" message not always showing after all buffers have been closed
This commit is contained in:
parent
6cdd7b7390
commit
161f8a1dd2
1 changed files with 1 additions and 1 deletions
|
@ -3300,7 +3300,7 @@ impl Render for Pane {
|
||||||
pane.child(self.render_tab_bar(window, cx))
|
pane.child(self.render_tab_bar(window, cx))
|
||||||
})
|
})
|
||||||
.child({
|
.child({
|
||||||
let has_worktrees = project.read(cx).worktrees(cx).next().is_some();
|
let has_worktrees = project.read(cx).visible_worktrees(cx).next().is_some();
|
||||||
// main content
|
// main content
|
||||||
div()
|
div()
|
||||||
.flex_1()
|
.flex_1()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue