Is it possible to call rebuildUserPresets() without using the expansion installer?
I'm looking to add a button in my maintenance panel to rebuild expansion presets, but I can't quite get it to work yet.
I'm using an encryped expansion, and my plug already has an expansion handler in place:
Then I'm calling the following with a button:
inline function onRebuild_YesControl(component, value) { if(value) { expHandler.rebuildUserPresets(); } }; Content.getComponent("Rebuild_Yes").setControlCallback(onRebuild_YesControl);But it's doing nothing.
I've tried the example in docs like this:
But that doesn't work either because obj is waiting for an argument (which never happens cause I'm not using the installer).