Quantcast
WoWInterface - View Single Post - Addon Request: Disabling or Hiding Appearance Tab.
View Single Post
12-06-17, 10:27 PM   #5
briskman3000
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 75
Took me a minute to figure out how in the hell to get it right, but this seems to work, at least in my testing:

Lua Code:
  1. --Hide the Appearance tab function
  2. local function hideapptab(self)
  3.     CollectionsJournalTab5:SetScript("OnEvent", nil)
  4.     CollectionsJournalTab5:Hide()
  5. end
  6.  
  7. function events:ADDON_LOADED(...)
  8.     if IsAddOnLoaded("Blizzard_Collections") then
  9.         hideapptab(self)
  10.     end
  11. end

Not exactly hooking the OnShow, but it accomplishes the same end result from what I can tell.
  Reply With Quote