forked from rilgamon/zz_Coords
Remove old binding when a new is set
This commit is contained in:
parent
3b70c9a5a5
commit
8fbe678e20
|
@ -4,6 +4,9 @@ local child = addon[childName]
|
|||
local L = LibStub("AceLocale-3.0"):GetLocale(childName, true)
|
||||
function child:PrefChanged(info, value, oldvalue)
|
||||
if(info[#info] == 'toggleMap' and value ~= oldvalue) then
|
||||
if(oldvalue) then
|
||||
SetBinding(oldvalue)
|
||||
end
|
||||
SetBinding(value, "CLICK zzCoords_MinimapToggleFrame:LeftButton")
|
||||
end
|
||||
child:ZoneEvent()
|
||||
|
|
Loading…
Reference in New Issue