generated from Exiles/coa-template
fix(Config): guard InterfaceOptions, fall back to AceConfigDialog on CoA
This commit is contained in:
+7
-1
@@ -163,10 +163,16 @@ local function getOptions()
|
||||
end
|
||||
|
||||
local function optFunc()
|
||||
-- CoA: InterfaceOptionsFrame_OpenToCategory / InterfaceOptionsFrame are nil on 3.3.5;
|
||||
-- fall back to AceConfigDialog which works on all clients.
|
||||
if InterfaceOptionsFrame_OpenToCategory then
|
||||
-- open the profiles tab before, so the menu expands
|
||||
InterfaceOptionsFrame_OpenToCategory(Mapster.optionsFrames.Profiles)
|
||||
InterfaceOptionsFrame_OpenToCategory(Mapster.optionsFrames.Mapster)
|
||||
InterfaceOptionsFrame:Raise()
|
||||
if InterfaceOptionsFrame then InterfaceOptionsFrame:Raise() end
|
||||
else
|
||||
LibStub("AceConfigDialog-3.0"):Open("Mapster")
|
||||
end
|
||||
end
|
||||
|
||||
function Mapster:SetupOptions()
|
||||
|
||||
Reference in New Issue
Block a user