I have an audio plugin which can load presets. Now I want to remember the last preset file which was loaded by a user. My PluginProcessor already has a PropertiesFile object where I could possibly store the last loaded file name as a string.
However, multiple instances of a plugin may be loaded and each one may have a different preset loaded. Hence, each plugin instance will overwrite the last preset filename field of the other instances.
What do you think is best practice to store/remember plugin instance specific properties which are not parameters in general? This would also include the window size for example…