TimoshN / SPTimers

0 stars 0 forks source link

Copy settings from a profile is not working [Shadowlands] #9

Open italankin opened 3 years ago

italankin commented 3 years ago

Upon copying settings from a profile this error ocurrs:

Message: ...nterface\AddOns\SPTimers\Libs\LibAleaUI-1.0\core.lua:1364: attempt to call method 'SetBackdrop' (a nil value)
Time: Mon Jun 14 17:36:34 2021
Count: 2
Stack: ...nterface\AddOns\SPTimers\Libs\LibAleaUI-1.0\core.lua:1364: attempt to call method 'SetBackdrop' (a nil value)
[string "@Interface\AddOns\SPTimers\Libs\LibAleaUI-1.0\core.lua"]:1364: in function <...nterface\AddOns\SPTimers\Libs\LibAleaUI-1.0\core.lua:1349>
[string "@Interface\AddOns\SPTimers\Libs\LibAleaUI-1.0\core.lua"]:1459: in function `ShowPopUp'
[string "@Interface\AddOns\SPTimers\Libs\LibAleaUI-1.0\core.lua"]:1257: in function `_OnClick'
[string "@Interface\AddOns\SPTimers\Libs\LibAleaUI-1.0\element-dropdown.lua"]:268: in function <...Ons\SPTimers\Libs\LibAleaUI-1.0\element-dropdown.lua:265>

Locals: f = <unnamed> {
 0 = <userdata>
 bg = <unnamed> {
 }
}
(*temporary) = nil
(*temporary) = <unnamed> {
 0 = <userdata>
}
(*temporary) = <table> {
 insets = <table> {
 }
 bgFile = "Interface\Buttons\WHITE8x8"
 edgeSize = 22
 edgeFile = "Interface\DialogFrame\UI-DialogBox-Border"
}
(*temporary) = "attempt to call method 'SetBackdrop' (a nil value)"
frames = <table> {
}
width = 290
height = 90
UpdatePosition = <function> defined @Interface\AddOns\SPTimers\Libs\LibAleaUI-1.0\core.lua:1339

Dialog does not show, copy function is not working at all.

I also tried disabling other addons, but it had no effect.


Addon Version: 3.15.6

italankin commented 3 years ago

A workaround I found is to change line 1361 in \Libs\LibAleaUI-1.0\core.lua:

f.bg = CreateFrame("Frame", nil, f)

to

f.bg = CreateFrame("Frame", nil, f, BackdropTemplateMixin and "BackdropTemplate")