Dropdown error - addon unusable
Valfyre opened this issue ยท 2 comments
15x SharedXML/UIDropDownMenu.lua:91: calling 'GetWindow' on bad self (Usage: local window = self:GetWindow())
[string "=[C]"]: in function GetWindow' [string "@SharedXML/UIDropDownMenu.lua"]:91: in function
UIDropDownMenu_Initialize'
[string "@SharedXML/UIDropDownMenu.lua"]:1167: in function <SharedXML/UIDropDownMenu.lua:1024>
[string "=[C]"]: ?
[string "=[C]"]: in function ToggleDropDownMenu' [string "@MogIt/Libs/Libra/Dropdown.lua"]:80: in function
ToggleMenu'
[string "@MogIt/Core/GUI.lua"]:563: in function <MogIt/Core/GUI.lua:557>
Locals:
(*temporary) =
_displayMode = "MENU"
active = Button {
}
xOffset = 0
SetHeight = defined @MogIt/Libs/Libra/Dropdown.lua:27
yOffset = 0
modules = Button {
}
options = Button {
}
preview = Button {
}
initialize = defined @MogIt/Core/GUI.lua:550
parent = MogItFrame {
}
CreateMenu = defined @MogIt/Core/GUI.lua:582
tier =
}
catalogue = Button {
}
}
I did this git diff -U0 10.1.7 10.2.0 -- UIDropDownMenu.lua
This is the output
diff --git a/Interface/SharedXML/UIDropDownMenu.lua b/Interface/SharedXML/UIDropDownMenu.lua
index a715d766..53b42afb 100644
--- a/Interface/SharedXML/UIDropDownMenu.lua
+++ b/Interface/SharedXML/UIDropDownMenu.lua
@@ -90,0 +91 @@ function UIDropDownMenu_Initialize(frame, initFunction, displayMode, level, menu
+ dropDownList:SetWindow(frame:GetWindow());
Duplicate of #28.