### Bug description <img width="815" alt="Image" src="https://github.com/user-attachments/assets/b257107d-4d2f-438d-be84-e63d7487b1db" /> ### Steps to reproduce 1. Have a track, select it 2. `Tracks > Duplicate` OR 3. `Tracks > Remove Tracks` 4. Observe ### Expected behavior 1. The track is duplicated 2. The track is removed ### Actual behavior 1. The track is not duplicated 2. The track is not removed ### Audacity Version master ### Operating system OS independent ### Additional context _No response_