ascott18 / TellMeWhen

TellMeWhen is a combat tracking AddOn for World of Warcraft Retail and Classic
https://wow.curseforge.com/projects/tellmewhen
GNU General Public License v3.0
86 stars 11 forks source link

"GetParent" method error while trying to edit Text Display #2221

Closed BloodyFess closed 2 months ago

BloodyFess commented 2 months ago

WoW Version

Retail

TellMeWhen Version

11.0.7

Describe the bug

Got error while try to edit "Text Displays" fields through "Copy" string for example: *[(Value / ValueMax 100):Round:Percent]**

Message: ...n/Components/IconModules/IconModule_Texts/Config.lua:651: attempt to call method 'GetParent' (a nil value) Time: Sun Sep 8 12:21:45 2024 Count: 4 Stack: ...n/Components/IconModules/IconModule_Texts/Config.lua:651: attempt to call method 'GetParent' (a nil value) [string "@Interface/AddOns/TellMeWhen/Components/IconModules/IconModule_Texts/Config.lua"]:651: in functionfunc' [string "@Interface/AddOns/TellMeWhen/Options/TMWUIDropDownMenu.lua"]:473: in function `Button_OnClick'

Locals: button = Button { tooltipWrap = false Highlight = Texture { } notCheckable = true InvisibleButton = Button { } listFrame = TMWDropDownsList1 { } arg1 =

{ } Check = Texture { } tooltipText = "[Spell] [Stacks:Hide(0):Paren]" UnCheck = Texture { } value = "[Spell] [Stacks:Hide(0):Paren]" ExpandArrow = Texture { } Icon = Texture { } tooltipTitle = "Used 2 |4time:times;." } dropdown =
{ scrollable = true wrapTooltips = true } (temporary) = nil (temporary) =
{ scrollable = true wrapTooltips = true } (*temporary) = "attempt to call method 'GetParent' (a nil value)" CI =
{ icon = TellMeWhen_Group19_Icon2 { } group = TellMeWhen_Group19 { } } `

Export Strings

N/A

P.S. But I can manually write this string "[(Value / ValueMax * 100):Round:Percent]" and all work.