Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Manually close tabs when they're closed while dragging them
## Summary of the Pull Request When we're dragging the tab around, if you execute a `ClosePane`/`CloseTab`, then we should make sure to actually activate a new tab, so that focus doesn't just fall into the void. ## References * This is almost exactly #5799, but with rearranging tabs ## PR Checklist * [x] Closes #5559 * [x] I work here * [ ] Tests added/passed * [n/a] Requires documentation to be updated ## Detailed Description of the Pull Request / Additional comments We suppress `_OnTabItemsChanged` events during a rearrange, so if a tab is closed while we're rearranging tabs, the we don't fire the `SelectionChanged` event that we usually do during a close that would select the new tab. ## Validation Steps Performed * Tested manually - Confirmed that tragging a tab out, closing it, then dragging it back in does nothing.
- Loading branch information