From 69b6f63d18bedcf12275e559414ab354771e6f84 Mon Sep 17 00:00:00 2001 From: urnati Date: Thu, 11 Nov 2021 07:29:09 -0500 Subject: [PATCH] - Further fix to the list to show the plugin name (menuText) instead of the id. This makes it consistent to text shown in the tooltip and dropdown menus. --- Titan/TitanConfig.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Titan/TitanConfig.lua b/Titan/TitanConfig.lua index 71ee68b..bede370 100644 --- a/Titan/TitanConfig.lua +++ b/Titan/TitanConfig.lua @@ -1482,9 +1482,9 @@ local optionsAddons = { type = "group", args = {} } -local function ColorVisible(name) +local function ColorVisible(id, name) local res = "?" - if TitanPanel_IsPluginShown(name) then + if TitanPanel_IsPluginShown(id) then res = (name or "") else res = "|cff808080"..name.._G["FONT_COLOR_CODE_CLOSE"] @@ -1531,7 +1531,7 @@ local function TitanUpdateConfigAddons() end args[plug_in.id] = { type = "group", - name = ColorVisible(plug_in.id or ""), + name = ColorVisible(plug_in.id or "", plug_in.menuText), order = idx, args = { name = { -- 1.7.9.5