Buttons resetting to default state on closing/reopening the plugin

Hello,

The buttons in plugin are either unselected or set to default (initial selection at launch) when plugin is closed and reopened in the same session.
I was able to solve this issue for sliders by slider attachments, is that the same solution in case of buttons also? or is there any other way I can adopt?
(PS - buttons used are Toggle, Text and Image buttons)

Any help/suggestion is appreciated.
TIA!

Attachments will work fine if there are parameters to attach to them. Otherwise, you’d need to store their state in the Processor someplace, and update their state when the Editor is (re)created by querying (or passing in) the states in question.

1 Like

Thank you for the suggestions. Attachments were working well in my case than adding additional state updater to the processor.