Menus are getting populated with items and styles of other addon's menus #5


  • Fixed
Closed
  • SLOKnightFall created this issue Oct 9, 2020

    I'm having an issue when using your library in which other's addons menus are showing when I try to display mine.  Below is an image of a easymenu dropdown that I created using your library, but when displays it is also showing menu items from the Titan addon that also uses your library. If you mouse over the extra menu items an error is thrown

     

     

    Error: 

    1x ...!LibUIDropDownMenu\LibUIDropDownMenu\LibEasyMenu-90030.lua:39: attempt to get length of local 'menuList' (a nil value)
    [string "@Titan\libs\!LibUIDropDownMenu\LibUIDropDownMenu\LibEasyMenu-90030.lua"]:39: in function `initFunction'
    [string "@BetterWardrobe\Libs\LibUIDropDownMenu\LibUIDropDownMenu.lua"]:425: in function `L_UIDropDownMenu_Initialize'
    [string "@BetterWardrobe\Libs\LibUIDropDownMenu\LibUIDropDownMenu.lua"]:1416: in function `L_ToggleDropDownMenu'
    [string "@BetterWardrobe\Libs\LibUIDropDownMenu\LibUIDropDownMenu.lua"]:551: in function `L_UIDropDownMenuButton_OnEnter'
    [string "@Titan\libs\!LibUIDropDownMenu\LibUIDropDownMenu\LibUIDropDownMenu.lua"]:190: in function <...DropDownMenu\LibUIDropDownMenu\LibUIDropDownMenu.lua:189>

    Locals:
    frame = BW_ItemSubDropDownMenu {
    0 = <userdata>
    Right = BW_ItemSubDropDownMenuRight {
    }
    Left = BW_ItemSubDropDownMenuLeft {
    }
    displayMode = "MENU"
    initialize = <function> defined @Titan\libs\!LibUIDropDownMenu\LibUIDropDownMenu\LibEasyMenu.lua:38
    Button = BW_ItemSubDropDownMenuButton {
    }
    Text = BW_ItemSubDropDownMenuText {
    }
    Middle = BW_ItemSubDropDownMenuMiddle {
    }
    Icon = BW_ItemSubDropDownMenuIcon {
    }
    }
    level = 2
    menuList = nil
    (*temporary) = 1
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = "attempt to get length of local 'menuList' (a nil value)"

     

  • arithmandar posted a comment Oct 18, 2020

    Hi, thanks for your message. Could you check if all those addon which embeds LibUIDropDownMenu all are now with latest version?

  • SLOKnightFall posted a comment Oct 18, 2020

    It looks like they still have the older version as they haven't done any updates since you released your newest version. 

  • arithmandar closed issue Jul 17, 2022
  • arithmandar added a tag Fixed Jul 17, 2022

To post a comment, please login or register a new account.