Fix logic for activating panel when re-docking it
This commit is contained in:
parent
793381f455
commit
a4c123bb11
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ impl Dock {
|
||||||
new_dock.add_panel(panel.clone(), workspace.clone(), cx);
|
new_dock.add_panel(panel.clone(), workspace.clone(), cx);
|
||||||
if was_visible {
|
if was_visible {
|
||||||
new_dock.set_open(true, cx);
|
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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue