Quantcast

- 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.

urnati [11-11-21 - 12:29]
- 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.
Filename
Titan/TitanConfig.lua
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 = {