From b7b048ec7c911aaab39190512611b998f9dbf96e Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Wed, 23 Jun 2010 05:12:11 -0400 Subject: [PATCH] Subheaders within a tab's list will now retain their expanded state between switching to another tab or changing the sort type. --- Frame.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Frame.lua b/Frame.lua index a95c693..0c4f3f3 100644 --- a/Frame.lua +++ b/Frame.lua @@ -2976,11 +2976,13 @@ do expand = true type = "entry" end + local is_expanded = current_tab.expanded[spell_id] and current_tab.expanded[private.acquire_names[acquire_id]] + t.text = FormatRecipeText(recipe_entry) t.recipe_id = spell_id t.acquire_id = acquire_id - entry_index = self:InsertEntry(t, current_entry, entry_index, type, expand or current_tab.expanded[spell_id], expand_all) + entry_index = self:InsertEntry(t, current_entry, entry_index, type, expand or is_expanded, expand_all or is_expanded) end end elseif current_entry.type == "subheader" then @@ -3017,11 +3019,13 @@ do expand = true type = "entry" end + local is_expanded = current_tab.expanded[spell_id] and current_tab.expanded[location_id] + t.text = FormatRecipeText(recipe_entry) t.recipe_id = spell_id t.location_id = location_id - entry_index = self:InsertEntry(t, current_entry, entry_index, type, expand or current_tab.expanded[spell_id], expand_all) + entry_index = self:InsertEntry(t, current_entry, entry_index, type, expand or is_expanded, expand_all or is_expanded) end end elseif current_entry.type == "subheader" then -- 1.7.9.5