EnhancedFriends: bandaid fix
This commit is contained in:
parent
048ea91ca9
commit
69b4bae4c0
1 changed files with 4 additions and 0 deletions
|
|
@ -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 ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue