You maybe shouldn't use the hud toggle function then and only close your addon, or let the user decided with a settings menu (LibAddonMenu) maybe if the whole scene should be closed or only your addon top level control:SetHidden(true).
There is only on and off. If the use decides to close the scene everything is closed which is attached (including all fragments + their contmrols). This is standard and correct.
|