mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
The One must stay leftmost: a frozen tab dragged before it, or the One dragged out of slot 0, would break the 'preview is always first' rule. Dock's in-strip reorder commits through FactoryBase.MoveDockable (the tab strip ignores IDockable.CanDrag), so override it: refuse moving the One, and clamp any tab targeting the One's slot to position 1 instead. Override the cross-dock variant too, and add an idempotent OnDockableMoved guard that re-asserts the One at index 0 against any drag path. Assisted-by: Claude:claude-opus-4-8:Claude Codepull/3755/head
2 changed files with 100 additions and 0 deletions
Loading…
Reference in new issue