fix: Select Instrument stays open after picking instrument

Remove setInstrumentSelectorTrackId(null) from
setTrackInstrumentWithProgram. Modal stays open so user can
switch tracks and assign instruments without reopening.
This commit is contained in:
2026-07-29 11:56:26 +07:00
parent 8051cf3edb
commit a1767e338a
3 changed files with 7 additions and 3 deletions
-2
View File
@@ -6919,9 +6919,7 @@ const App = () => {
}));
setInstrumentDropdownTrackId(null);
setInstrumentDropdownBtnRect(null);
setInstrumentSelectorTrackId(null);
setSynthCategory(null);
setSelectedSoundFontId(null);
// Trigger SpessaSynth load + program change when soundfont instrument selected
if (window.SonicSF && window.SonicSF.selectInstrument && instrumentId && isSfInstrument) {
const sfId = instrumentId.replace('sf_', '');