When loading a module you have an event that generate an action when the module is loaded. The problem is that you want to be sure that the action already exists otherwise it will not be executed obviously.
In order to be 'sure' that the action exists I add it in the general preferences. However I get random results. Apparently in some case the action out from the module is executed before the general preferences action has been loaded and I don't understand why.
When loading a module you have an event that generate an action when the module is loaded. The problem is that you want to be sure that the action already exists otherwise it will not be executed obviously.
In order to be 'sure' that the action exists I add it in the general preferences. However I get random results. Apparently in some case the action out from the module is executed before the general preferences action has been loaded and I don't understand why.
The relate loading order is I think here:
https://github.com/NPellet/visualizer/blob/0369baee45b70071656a7b41771696cf75b4c520/src/src/main/entrypoint.js#L127-L148