project panel: Fix preview tabs not working when enabled (#20416)
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>
This commit is contained in:
parent
09675d43b3
commit
edb89d8d11
1 changed files with 1 additions and 1 deletions
|
@ -2665,7 +2665,7 @@ impl ProjectPanel {
|
||||||
entry_id,
|
entry_id,
|
||||||
cx.modifiers().secondary(),
|
cx.modifiers().secondary(),
|
||||||
!preview_tabs_enabled || click_count > 1,
|
!preview_tabs_enabled || click_count > 1,
|
||||||
!preview_tabs_enabled && click_count == 1,
|
preview_tabs_enabled && click_count == 1,
|
||||||
cx,
|
cx,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue