Fix logic for activating panel when re-docking it

This commit is contained in:
Max Brunsfeld 2023-12-15 11:47:01 -08:00
parent 793381f455
commit a4c123bb11

View file

@ -317,7 +317,7 @@ impl Dock {
new_dock.add_panel(panel.clone(), workspace.clone(), cx);
if was_visible {
new_dock.set_open(true, cx);
new_dock.activate_panel(this.panels_len() - 1, cx);
new_dock.activate_panel(new_dock.panels_len() - 1, cx);
}
});
}