From d87857b3793c7cf4c3370839495f0dbdafba48f8 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Mon, 31 May 2010 23:07:24 -0400 Subject: [PATCH] In ListFrame:Initialize() - don't check which tab we're viewing, just call it's Initialize(). --- Frame.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Frame.lua b/Frame.lua index 1bea03a..4f7b7cf 100644 --- a/Frame.lua +++ b/Frame.lua @@ -3195,7 +3195,6 @@ do local current_tab = addon.db.profile.current_tab local search_box = MainPanel.search_editbox - local recipe_count = 0 local insert_index = 1 for i = 1, #self.entries do @@ -3208,12 +3207,7 @@ do ExpandButton:Contract() - if current_tab == VIEW_TABS["Acquisition"] then - recipe_count = AcquisitionTab:Initialize(expand_mode) - elseif current_tab == VIEW_TABS["Location"] then - recipe_count = LocationTab:Initialize(expand_mode) - else - end -- Sort type. + local recipe_count = MainPanel.tabs[current_tab]:Initialize(expand_mode) -- The list always starts at the top. ScrollUpButton:Disable() -- 1.7.9.5