Closed TomJGooding closed 2 weeks ago
Fixes https://github.com/Textualize/textual/issues/5215 where removing then adding a pane could crash with a DuplicateIds exception.
DuplicateIds
Rather than assigning the ID based on the current tab count, this adds a _cumulative_tab_count to ensure added panes have a unique ID.
_cumulative_tab_count
Please review the following checklist.
This doesn't fix the highlighting issue when tabs are removed (https://github.com/Textualize/textual/issues/5215#issuecomment-2462555201), but that should probably be a separate issue/PR.
Fixes https://github.com/Textualize/textual/issues/5215 where removing then adding a pane could crash with a
DuplicateIds
exception.Rather than assigning the ID based on the current tab count, this adds a
_cumulative_tab_count
to ensure added panes have a unique ID.Please review the following checklist.