Error on Addon load if an non existant event was added
JoschiZ opened this issue ยท 3 comments
How to reproduce:
- Open VDT
- Go into the Event Tab
- Enter "ElvUI" in the bottom bar to add this "event"
- Nothing will happen, because that event does not exist
- Reload
- VDT will crash while initializing with this error:
ViragDevToolListenerFrame:RegisterEvent(): ViragDevToolListenerFrame:RegisterEvent(): Attempt to register unknown event "ElvUI"
[string "=[C]"]: in function `RegisterEvent'
[string "@Interface/AddOns/ViragDevTool/Modules/ViragDevToolEvents.lua"]:30: in function `StartMonitorEvent'
[string "@Interface/AddOns/ViragDevTool/ViragDevTool.lua"]:159: in function `cmd'
[string "@Interface/AddOns/ViragDevTool/ViragDevTool.lua"]:428: in function `ExecuteCMD'
[string "@Interface/AddOns/ViragDevTool/ViragDevTool.lua"]:885: in function `SubmitEditBoxSidebar'
[string "*ViragDevTool.xml:662_OnEnterPressed"]:1: in function <[string "*ViragDevTool.xml:662_OnEnterPressed"]:1>
Locals:
(*temporary) = ViragDevToolListenerFrame {
0 = <userdata>
}
(*temporary) = "ElvUI"
Thanks for reporting, I'll take a look at adding a safety check for this when launching.
is there any way to remove this added event? i tried removing all files in the WTF folder, but i still get the error on load