ingame/guild/keyboard/zo_guildranks_keyboard.lua:153 -- GUILD_RANKS_SCENE:RegisterCallback("StateChange", function(oldState, newState)
if newState == SCENE_SHOWING then
MAIN_MENU_MANAGER:SetBlockingScene("guildRanks", OnBlockingSceneActivated)
KEYBIND_STRIP:RemoveDefaultExit()
KEYBIND_STRIP:AddKeybindButtonGroup(self.keybindStripDescriptor)
elseif newState == SCENE_HIDING then
self:StopDragging()
elseif newState == SCENE_HIDDEN then
self:RefreshSaveEnabled()
self:Save()
KEYBIND_STRIP:RemoveKeybindButtonGroup(self.keybindStripDescriptor)
KEYBIND_STRIP:RestoreDefaultExit()
-- Blocking scene is cleared in SaveAndExit() to prevent the scene manager from exiting then re-entering the main menu
end
end)