When revealing items, zoom-out any inactive panes
This commit is contained in:
1 parent
3f6aa94a5f
commit
c48fed26bd
1 file changed
+2
-2
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user