Commit fb231a4 1 parent c992fb6 commit fb231a4 Copy full SHA for fb231a4
File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ local GetSpellTexture = C_Spell and C_Spell.GetSpellTexture or GetSpellTexture
21
21
---- --------
22
22
23
23
local _
24
+ local optionsMenuName
24
25
local animating = {}
25
26
local randomX = {}
26
27
local randomY = {}
@@ -1977,14 +1978,12 @@ local filters = {
1977
1978
}
1978
1979
1979
1980
function NameplateSCT :OpenMenu ()
1980
- -- just open to the frame, double call because blizz bug
1981
- InterfaceOptionsFrame_OpenToCategory (self .menu )
1982
- InterfaceOptionsFrame_OpenToCategory (self .menu )
1981
+ Settings .OpenToCategory (optionsMenuName )
1983
1982
end
1984
1983
1985
1984
function NameplateSCT :RegisterMenu ()
1986
1985
LibStub (" AceConfigRegistry-3.0" ):RegisterOptionsTable (" NameplateSCT" , menu )
1987
1986
LibStub (" AceConfigRegistry-3.0" ):RegisterOptionsTable (" Filters" , filters )
1988
- self . menu = LibStub (" AceConfigDialog-3.0" ):AddToBlizOptions (" NameplateSCT" , " NameplateSCT" )
1987
+ _ , optionsMenuName = LibStub (" AceConfigDialog-3.0" ):AddToBlizOptions (" NameplateSCT" , " NameplateSCT" )
1989
1988
LibStub (" AceConfigDialog-3.0" ):AddToBlizOptions (" Filters" , " Filters" , " NameplateSCT" )
1990
1989
end
You can’t perform that action at this time.
0 commit comments