Skip to content

Commit

Permalink
Fixed a bug where upgrade icon provider might be blank, and missing e…
Browse files Browse the repository at this point in the history
…ntirely in classic.
  • Loading branch information
Cidan committed Sep 2, 2024
1 parent 5c91bd3 commit 98b5388
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions config/era/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,25 @@ function config:GetGeneralOptions()
DB:SetCategorySell(value)
end,
},
upgradeIconProvider = {
type = "select",
width = "double",
order = 4,
name = L:G("Upgrade Icon Provider"),
desc = L:G("Select the provider for the upgrade icon."),
values = {
["None"] = L:G("None"),
["BetterBags"] = L:G("BetterBags"),
},
get = function()
return DB:GetUpgradeIconProvider()
end,
set = function(_, value)
DB:SetUpgradeIconProvider(value)
local ctx = context:New('on_click')
events:SendMessage(ctx, 'bag/RedrawIcons')
end,
},
newItemTime = {
type = "range",
order = 2,
Expand Down
2 changes: 1 addition & 1 deletion core/constants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ const.DATABASE_DEFAULTS = {
categorySell = false,
showKeybindWarning = true,
enterToMakeCategory = true,
upgradeItemProvider = 'None',
upgradeIconProvider = 'None',
theme = 'Default',
showFullSectionNames = {
[const.BAG_KIND.BACKPACK] = false,
Expand Down

0 comments on commit 98b5388

Please sign in to comment.