Fix repeatedly docking project panel (#11884)
Close: #11808 , #9688 Release Notes: - N/A
This commit is contained in:
parent
ba8aba4d17
commit
a0d7ec9f8e
1 changed files with 1 additions and 0 deletions
|
@ -373,6 +373,7 @@ impl Dock {
|
|||
this.remove_panel(&panel, cx);
|
||||
|
||||
new_dock.update(cx, |new_dock, cx| {
|
||||
new_dock.remove_panel(&panel, cx);
|
||||
new_dock.add_panel(panel.clone(), workspace.clone(), cx);
|
||||
if was_visible {
|
||||
new_dock.set_open(true, cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue