Combobox not syncing Presets properly
-
Hey So I use a combobox to load all my samplemaps in my preset browser, but when I add more presets it desyncs the previous presets 2026-05-12 13-52-40.mkv
-
@duma The combo box indexes will be shifted when you add new items to it. The preset will still contain the old indexes. If this is for a product update you can use the preset preprocessor to redirect them.
-
@duma as Dave says... and this is why most of us ran away from using comboBoxes for this, instead one alternative approach is:
- add a TextBox to your UI, that contains the name of your preset (or sample map) and this is the saveInPreset object that loads your preset or map.
Your Combo Box is then just there to populate this textBox and call changed() on it... the comboBox then should not be saveInPreset...
It is also possible to set the LAF for your comboBox to show nothing in its default state...and you can then place a LAFed textBox that looks exactly like a "closed" ComboBox underneath the ComboBox, thus from the end users point of view it looks and behaves just like a regular ComboBox
-
@David-Healey If product update means adding new presets to the preset browser than yes, that's what I mean. The code doesn't work

-
I don't want the user to see the combobox it's just to have presets stored correctly