Add fixes.lua for temporary fixes
This commit is contained in:
parent
9449a22a73
commit
e107ac2b97
|
@ -0,0 +1,16 @@
|
|||
local addonName, addon = ...
|
||||
local childName = addon['childName']
|
||||
local child = addon[childName]
|
||||
|
||||
local init = {
|
||||
Setup = function(self, childName, event)
|
||||
-- Remove the cancel button (Reduce the taint caused by InterfaceOptionsFrame src: http://www.wowinterface.com/forums/showpost.php?p=275119&postcount=17 )
|
||||
InterfaceOptionsFrameCancel:Hide()
|
||||
InterfaceOptionsFrameOkay:SetAllPoints(InterfaceOptionsFrameCancel)
|
||||
-- Make clicking cancel the same as clicking okay
|
||||
InterfaceOptionsFrameCancel:SetScript("OnClick", function()
|
||||
InterfaceOptionsFrameOkay:Click()
|
||||
end)
|
||||
end
|
||||
}
|
||||
addon.RegisterCallback(init, format("Init%s", childName), 'Setup', childName)
|
Loading…
Reference in New Issue