preview tabs: Fix tab selection getting out of sync (#10478)

There was an edge case where the project panel selection would not be
updated when opening a lot of tabs quickly using the preview tab
feature.
I spent way too long debugging this, thankfully @ConradIrwin spotted it
in like 5 minutes 🎉

Release Notes:

- N/A
7b01a29f5aBennet Bo Fenner committed on 4/12/2024, 3:20:30 PM· committed by GitHubparent04e89c4
1 file changedLine totals unavailable