Godot Version
4.1.2
Question
Hello everyone!
I’m trying change the used export template in the configuration via GDScript to prepare an export, but the changed value always gets reset.
Loading the export_presets.cfg via a ConfigFile object and then adapting the correct key works fine, I see the changed value in the export_presets.cfg file in a text editor. When opening the export menu though, the value is automatically reset to it’s previous value.
Is there a way to change the export settings and make sure they are used without restarting the editor? Restarting the editor directly after the configuration change is my current workaround, but this is really tedious and I’m wondering what I’m missing that the changed value is not applied.
Any hints and advice regarding this issue would be greatly appreciated!
Thanks in advance for any input and best regards,
Patrick