I implemented in my addon the method shown in the maze generator part 3 tutorial of the API blog.
I have several dialogs in my addon so I tried implementing a set of settings and preferences handling for each of my dialogs and palettes.
However this didn't quite work. Even though each dialog use their own functions with different names when I go from one dialog to the other they seem to overwrite each others settings.
Using only on set of settings and preferences handling common to all dialogs and palettes fix the issue but I'll end up with hundreds of variables that get handled for no reason if i use a dialog that only needs a few of them.
My question is:
Are we limited to one Memory channel and set of settings per addon ? Or is there a way to get several?
I tried the method were each dialog has its own set to limit the number of settings but the only way to get everything working at the moment is to use only one.
Another idea would be, to use the preference data but use the Input/Output channels more like random access memory. I think the memory channels support offsets. So you wouldn't need to handle variables not related to the current context.