diff --git a/crates/workspace/src/dock.rs b/crates/workspace/src/dock.rs index 96323ef4e2ed0b826144ce49a8fa261f482ac1bc..7e86a5a8a3314dd20c3bd0320a3d2a3657496ce3 100644 --- a/crates/workspace/src/dock.rs +++ b/crates/workspace/src/dock.rs @@ -541,7 +541,10 @@ impl Dock { PanelSizeState::default() }; - this.remove_panel(&panel, window, cx); + if !this.remove_panel(&panel, window, cx) { + // Panel was already moved from this dock + return; + } new_dock.update(cx, |new_dock, cx| { let index =