Expansionhandler.refreshExpansions()
-
@DanH Is this in HISE or the compiled plugin?
-
@d-healey compiled
-
@DanH Did you restart the plugin after installing the expansion?
-
@d-healey yes, that's the only way it would show. I was expecting it to show right away (and then made a button to try and force it).
-
@DanH I think you have to restart, just like when you redirect samples.
-
@d-healey ok then
Thanks!
-
@Christoph-Hart Actually
refreshExpansions
does seem to be broken. After I remove an expansion and call the function the expansion is still showing up. -
I've had a look at the source and it seems like Christoph intended to do something but didn't, or didn't clean up after himself.
There is a variable called newList that is never used...
Anyway I found out why it's not doing anything when I remove an expansion (not sure if there is a problem with adding yet, I think restarting the app is the intended, although clunky, behaviour).
The refreshExpansions function is going through every expansion and adding them to the expansionList but if the expansion is already in the list it just skips it this means that if you remove an expansion (which must already be in the list) it will be ignored when doing the refresh and so will still be in the list.
My suggestion @Christoph-Hart is to get rid of the check to see if the expansion is already in the list, and clear the list before entering the loop. I've just tested this and it works but what do you think/suggest?
-
Christoph added an unloadExpansion function today into the new_layout branch that solves my issue :)
-
@d-healey Nice. So I've been testing the install and for some reason the new expansions are showing in the plugin a few moments after installing, presets and samples all seemingly available and working - so that's good!
EDIT - I think I figured it out, I have the Preset Browser set with the expansions column active at the moment, and the expansion appears there a few seconds after the expansion installation. So perhaps the refresh does work after all - just not quite how I wanted it