project panel: Fix preview tabs not working when enabled (#20416)

Thorsten Ball and Piotr created

PR #20154 introduced a regression and essentially disabled preview tabs
in code.

This fixes it and restores the old preview tabs behavior.

Release Notes:

- Fixed preview tabs being disabled in code, even if they were enabled
in the settings.

Co-authored-by: Piotr <piotr@zed.dev>

Change summary

crates/project_panel/src/project_panel.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

crates/project_panel/src/project_panel.rs 🔗

@@ -2643,7 +2643,7 @@ impl ProjectPanel {
                             entry_id,
                             cx.modifiers().secondary(),
                             !preview_tabs_enabled || click_count > 1,
-                            !preview_tabs_enabled && click_count == 1,
+                            preview_tabs_enabled && click_count == 1,
                             cx,
                         );
                     }