From a0d7ec9f8e70799163313767b5a8bc34d9e4aa1b Mon Sep 17 00:00:00 2001 From: CharlesChen0823 Date: Thu, 16 May 2024 12:32:03 +0800 Subject: [PATCH] Fix repeatedly docking project panel (#11884) Close: #11808 , #9688 Release Notes: - N/A --- crates/workspace/src/dock.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/workspace/src/dock.rs b/crates/workspace/src/dock.rs index a304ef4a6392514b90ea4c26ae06aebb37834150..d84aace8f927995ebd3d27843b59fd8c211882b7 100644 --- a/crates/workspace/src/dock.rs +++ b/crates/workspace/src/dock.rs @@ -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);