Add PrefChanged update and add default 'show lowest'

This commit is contained in:
rilgamon 2021-03-23 12:01:24 +01:00
parent 0ff9f94333
commit 64e4420c78
2 changed files with 4 additions and 0 deletions

View File

@ -113,6 +113,7 @@ child['specs'] = {
[childName] = {
["autorepair"] = true,
["listall"] = true,
["showlowest"] = true,
}
}
}

View File

@ -2,6 +2,9 @@ local addonName, addon = ...
local childName = addon['childName']
local child = addon[childName]
local L = LibStub("AceLocale-3.0"):GetLocale(childName, true)
function child:PrefChanged()
child.events.UPDATE_INVENTORY_DURABILITY()
end
local init = {
Setup = function(self)
local config = LibStub:GetLibrary("zzConfig")