Settings Menu Not Working

You have two approaches here:

  • Store the settings in a simple struct when the user changes them and load them when opening the menu.
  • Don’t destroy the menu (remove from parent) but collapse it (set visibility to collapsed) instead.