Save User Settings

good morning, would it be possible to add a function to export global variables to restore in the future?

I created a widget with various settings, and every time I launch an update, users have to configure it all over again. it was an excellent option to save these settings.

It would have to come with a warning, if you have changed anything in the globals, to check them as the value they had may have changed, or not exist anymore .

Even locally any change to a global requires a reelection of the default.

I can well see the bebefit all round for ease of use amd configurability of shipped presets though.