When revealing items, zoom-out any inactive panes

This commit is contained in:
Max Brunsfeld 2023-05-31 13:05:50 -07:00
parent 3f6aa94a5f
commit c48fed26bd

View File

@ -1705,8 +1705,8 @@ impl Workspace {
cx: &mut ViewContext<Self>,
) {
// 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));
}
}