-
Notifications
You must be signed in to change notification settings - Fork 0
MenuState
APHONIC edited this page Sep 15, 2026
·
2 revisions
MenuState.lua: remembers whether a LAM2 settings-menu submenu was left open or closed across a reload.
PC keyboard/mouse only. Restores on the call, then tracks future toggles.
LibAPH.PersistSubmenuOpenState(MyAddon.settings.submenu_state, "MyAddon_Submenu_UIConfig")TrackSubmenuOpenState(savedTable, reference) and RestoreSubmenuOpenState(savedTable, reference) are the two halves of the call above, if you want them separately - RestoreSubmenuOpenState on menu build, TrackSubmenuOpenState on toggle.