mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-05 02:20:10 +00:00
When revealing items, zoom-out any inactive panes
This commit is contained in:
parent
3f6aa94a5f
commit
c48fed26bd
1 changed files with 2 additions and 2 deletions
|
@ -1705,8 +1705,8 @@ impl Workspace {
|
||||||
cx: &mut ViewContext<Self>,
|
cx: &mut ViewContext<Self>,
|
||||||
) {
|
) {
|
||||||
// If a center pane is zoomed, unzoom it.
|
// If a center pane is zoomed, unzoom it.
|
||||||
if except_position.is_some() {
|
for pane in &self.panes {
|
||||||
for pane in &self.panes {
|
if pane != &self.active_pane {
|
||||||
pane.update(cx, |pane, cx| pane.set_zoomed(false, cx));
|
pane.update(cx, |pane, cx| pane.set_zoomed(false, cx));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue