Trying to disable any EMPTY (unwanted) custom category, results error..
clt60 opened this issue ยท 0 comments
Addon Version
v0.2.2
World of Warcraft Version
Retail
Describe the bug
A lot of "custom categories" are automatically created, which cannot even uncheck. See the steps to reproduce.
Steps to reproduce
- exit game
- Start with clean install (remove addon from Interface and the SavedVariables too in the WTF.)
- install BetterBags addon
- start the game
- open BatterBags options.
- in the Backpack->Categories no custom category is defined yet... this is OK. See screenshot 1.
- create any new custom category, let say "aaItems"
- In the Backpack->Categories, apart from my "aaItems" suddenly a zilion different "custom categories" appear and all have checked "checkboxes". See screenshot 2.
- This is the first bug, should be here only my "aaItems" (but the addon works without any error)
- Next, try uncheck any of these unwanted checkboxes, let say "Trinket", result is a following lua error:
- definitely a bug.
1x BetterBags/data/categories.lua:259: attempt to index a nil value
[string "@BetterBags/data/categories.lua"]:259: in function `SetCategoryState'
[string "@BetterBags/config/bags.lua"]:62: in function <BetterBags/config/bags.lua:61>
[string "=[C]"]: ?
[string "@BetterBags/libs/AceConfig-3.0-3/AceConfigDialog-3.0-87/AceConfigDialog-3.0.lua"]:45: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:43>
[string "@BetterBags/libs/AceConfig-3.0-3/AceConfigDialog-3.0-87/AceConfigDialog-3.0.lua"]:839: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:661>
[string "@BetterBags/libs/AceConfig-3.0-3/AceConfigDialog-3.0-87/AceConfigDialog-3.0.lua"]:897: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:896>
[string "=[C]"]: ?
[string "@Bazooka_Options/libs/Ace3/AceGUI-3.0-41/AceGUI-3.0.lua"]:66: in function <.../Bazooka_Options/libs/Ace3/AceGUI-3.0/AceGUI-3.0.lua:64>
[string "@Bazooka_Options/libs/Ace3/AceGUI-3.0-41/AceGUI-3.0.lua"]:300: in function `Fire'
[string "@Bazooka_Options/libs/Ace3/AceGUI-3.0-41/widgets/AceGUIWidget-CheckBox.lua"]:64: in function <...bs/Ace3/AceGUI-3.0/widgets/AceGUIWidget-CheckBox.lua:53>
Locals:
self = <table> {
modules = <table> {
}
defaultModuleLibraries = <table> {
}
categoryCount = 0
name = "BetterBags_Categories"
ephemeralCategories = <table> {
}
orderedModules = <table> {
}
categoryFunctions = <table> {
}
baseName = "BetterBags"
ephemeralCategoryByItemID = <table> {
}
enabledState = true
defaultModuleState = true
moduleName = "Categories"
itemsWithNoCategory = <table> {
}
}
kind = 0
category = "Trinket"
enabled = false
(*temporary) = nil
(*temporary) = <table> {
modules = <table> {
}
defaultModuleState = true
data = <table> {
}
enabledState = true
baseName = "BetterBags"
defaultModuleLibraries = <table> {
}
name = "BetterBags_Database"
orderedModules = <table> {
}
moduleName = "Database"
}
(*temporary) = "Trinket"
(*temporary) = nil
(*temporary) = false
(*temporary) = "attempt to index a nil value"
database = <table> {
modules = <table> {
}
defaultModuleState = true
data = <table> {
}
enabledState = true
baseName = "BetterBags"
defaultModuleLibraries = <table> {
}
name = "BetterBags_Database"
orderedModules = <table> {
}
moduleName = "Database"
}