From 161f8a1dd21a1f6d847499576e479eecd9103353 Mon Sep 17 00:00:00 2001 From: Felix Packard Date: Tue, 4 Mar 2025 16:21:16 +0000 Subject: [PATCH] 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 --- crates/workspace/src/pane.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rs index 45a5887563..d579624378 100644 --- a/crates/workspace/src/pane.rs +++ b/crates/workspace/src/pane.rs @@ -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()