ingame/map/gamepad/worldmapinfo_gamepad.lua:12 -- GAMEPAD_WORLD_MAP_INFO_FRAGMENT:RegisterCallback("StateChange", function(oldState, newState)
if newState == SCENE_FRAGMENT_SHOWING then
ZO_WorldMap_SetGamepadKeybindsShown(false)
ZO_GamepadGenericHeader_Activate(self.header)
self:ShowCurrentFragments()
elseif newState == SCENE_FRAGMENT_HIDDEN then
ZO_GamepadGenericHeader_Deactivate(self.header)
--The fragments must hide immediately on removal otherwise they won't have removed their keybinds before the world map keybinds are restored on the line below.
self:RemoveCurrentFragments()
ZO_WorldMap_SetGamepadKeybindsShown(true)
ZO_WorldMap_UpdateInteractKeybind_Gamepad()
end
end)