Talent Tree Viewer (calculator) | Dragonflight

Talent Tree Viewer (calculator) | Dragonflight

252k Downloads

Shift-clicking minimap button throws error if UI was not yet opened

tflo opened this issue · 1 comments

commented

When I shift-click the minimap button to make it go away, I get this error:

Details
1x .../TalentTreeViewer_Loader/TalentTreeViewer_Loader.lua:47: attempt to index global 'TalentViewer' (a nil value)
[string "@TalentTreeViewer_Loader/TalentTreeViewer_Loader.lua"]:47: in function `OnClick'
[string "@BugSack/Libs/LibDBIcon-1.0-45/LibDBIcon-1.0.lua"]:144: in function <BugSack/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:142>

Locals:
(*temporary) = nil
(*temporary) = true
(*temporary) = nil
(*temporary) = "attempt to index global 'TalentViewer' (a nil value)"
LibDBIcon = <table> {
 Register = <function> defined @BugSack/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:329
 callbacks = <table> {
 }
 Unlock = <function> defined @BugSack/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:351
 loggedIn = true
 Lock = <function> defined @BugSack/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:339
 ShowOnEnter = <function> defined @BugSack/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:427
 SetButtonToPosition = <function> defined @BugSack/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:460
 SetButtonRadius = <function> defined @BugSack/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:451
 UnregisterAllCallbacks = <function> defined @Accountant_Classic/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:174
 notCreated = <table> {
 }
 radius = 5
 GetMinimapButton = <function> defined @BugSack/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:402
 AchievementFilterLDB = <table> {
 }
 IsRegistered = <function> defined @BugSack/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:377
 tooltip = LibDBIconTooltip {
 }
 Hide = <function> defined @BugSack/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:363
 RegisterCallback = <function> defined @Accountant_Classic/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:90
 Show = <function> defined @BugSack/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:368
 GetButtonList = <function> defined @BugSack/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:443
 UnregisterCallback = <function> defined @Accountant_Classic/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:153
 Refresh = <function> defined @BugSack/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:381
 objects = <table> {
 }
 callbackRegistered = true
 Load = <function> defined @Krowi_AchievementFilter/Icon.lua:36
 IconCallback = <function> defined @BugSack/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:25
}
name = "TalentTreeViewer_Loader"
TVLoader = <table> {
 RegisterToBlizzMove = <function> defined @TalentTreeViewer_Loader/TalentTreeViewer_Loader.lua:139
 GetTV = <function> defined @TalentTreeViewer_Loader/TalentTreeViewer_Loader.lua:134
 ADDON_LOADED = <function> defined @TalentTreeViewer_Loader/TalentTreeViewer_Loader.lua:13
 OnInitialize = <function> defined @TalentTreeViewer_Loader/TalentTreeViewer_Loader.lua:24
 AddButtonToBlizzardTalentFrame = <function> defined @TalentTreeViewer_Loader/TalentTreeViewer_Loader.lua:80
 LoadTV = <function> defined @TalentTreeViewer_Loader/TalentTreeViewer_Loader.lua:129
 db = <table> {
 }
 ToggleTalentView = <function> defined @TalentTreeViewer_Loader/TalentTreeViewer_Loader.lua:125
 HookIntoBlizzardImport = <function> defined @TalentTreeViewer_Loader/TalentTreeViewer_Loader.lua:91
}

When I open TalentViewer first and then shift-click the minimap button, then it goes away without errors. Seems something is not yet loaded when it should be.

– Tom

commented

fixed in next update :)