How to save values after closing a widget and then opening it again?

No I didn’t mean to destroy the widget, you can simply adjust what it shows