mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
UpdateLastDocumentCanClose was counting only factory.Documents.VisibleDockables to decide CanClose. After the user drags a tab out into a side-by-side split, Dock creates a second IDocumentDock that holds the dragged tab. factory.Documents still points at the ORIGINAL dock (now with one tab), so the handler updates CanClose=false on its remaining tab — but the new sibling dock's tab keeps the CanClose=true it had before the drag. Result: one tab closable, the other not, even though the user has two documents open. Assisted-by: Claude:claude-opus-4-7:Claude Codepull/3755/head
1 changed files with 26 additions and 7 deletions
Loading…
Reference in new issue