When the "settings" button is pressed in the main GUI, forward the handle of this GUI to sub-GUI. When the sub-GUI is closed, use guidata() to write the values from the sub-GUI to the handles struct (or any other ApplicationData) of the main-GUI.
Sharing data between GUIs is discussed frequently. Searching in this forum allows you to find more details.