View Single Post
10-09-21, 07:42 AM   #7
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
Originally Posted by bsmorgan View Post
It works!

Lua Code:
  1. function Skillet:ShowOptions()
  2.     InterfaceOptionsFrame_Show()
  3.     ScrollToCategory("Skillet")
  4.     InterfaceOptionsFrame_OpenToCategory("Skillet")
  5. end

Thank you!
If you want it to "always work" and not have to complicate the method you could add a
Code:
InterfaceOptionsFrameAddOnsListScrollBar:SetValue(0)
to reset the addon list to the top as it retains the last selection for the session.

That would make it more generic so it works for addons towards the top of the list when the last addon selected was a the bottom (list is already scrolled down from a previous user action)
  Reply With Quote