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:
Felix Packard
2025-03-04 09:21:16 -07:00
committed by GitHub
parent 6cdd7b7390
commit 161f8a1dd2
+1 -1
View File
@@ -3300,7 +3300,7 @@ impl Render for Pane {
pane.child(self.render_tab_bar(window, cx))
})
.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
div()
.flex_1()