EnhancedFriends: bandaid fix

This commit is contained in:
andrew6180
2024-11-17 11:19:19 -07:00
parent 048ea91ca9
commit 69b4bae4c0
@@ -108,6 +108,10 @@ end
function EFL:Update_Name(button)
local isOffline = button.TYPE == "Offline" or false
if not button.TYPE or not self.db[button.TYPE] then
button.TYPE = "Offline" -- bandaid
end
local enhancedName = (self.db[button.TYPE].enhancedName and GetClassColorHex(button.class, isOffline)..button.nameText.."|r" or button.nameText)
local enhancedLevel = self.db[button.TYPE].level and button.levelText and format(self.db[button.TYPE].levelText and (self.db[button.TYPE].shortLevel and L["SHORT_LEVEL_TEMPLATE"] or L["LEVEL_TEMPLATE"]) or "%s", self.db[button.TYPE].levelColor and GetLevelDiffColorHex(button.levelText, isOffline)..button.levelText.."|r" or button.levelText).." " or ""
local enhancedClass = self.db[button.TYPE].classText and button.class or ""