Skip to content

Commit ad9b24e

Browse files
committed
fix(ldb): use proper Plugin Name for Titan Panel
1 parent d1db174 commit ad9b24e

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ This addon extends the ingame toy box with some cool stuff.
1010
- Sort toys by name or expansion (or in reverse)
1111

1212
## ⭐ Enhanced Favorites
13-
- __new:__ Use multiple Profiles and quickly switch between them
14-
- __new:__ Integrated Data broker plugin to access your favorite toys more quickly
15-
- __new:__ Favor new toys automatically
13+
- Use multiple Profiles and quickly switch between them
14+
- Integrated Data broker plugin to access your favorite toys more quickly
15+
- Favor new toys automatically
1616
- Favor all filtered toys at once or unset them all
1717
- Use a random favored toy
1818

UI/LDB-Favorites.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,13 @@ ADDON.Events:RegisterCallback("OnLogin", function()
173173
end
174174
end
175175

176+
local ldbName = ADDON_NAME.." Favorites"
176177
local _, profileName = ADDON.Api:GetFavoriteProfile()
177-
local ldbDataObject = ldb:NewDataObject( ADDON_NAME.." Favorites", {
178+
local ldbDataObject = ldb:NewDataObject( ldbName, {
178179
type = "data source",
179180
text = profileName,
180181
value = count(),
181-
label = ADDON.L.FAVORITE_PROFILE,
182+
label = ldbName, -- Titan Panel uses label as entry name in its plugin list.
182183
icon = "Interface\\Icons\\Trade_Archaeology_ChestofTinyGlassAnimals",
183184
tooltip = tooltipProxy,
184185

@@ -191,6 +192,9 @@ ADDON.Events:RegisterCallback("OnLogin", function()
191192
end
192193
end,
193194
} )
195+
C_Timer.After(0, function()
196+
ldbDataObject.label = ADDON.L.FAVORITE_PROFILE
197+
end)
194198

195199
ADDON.Events:RegisterCallback("OnFavoriteProfileChanged", function()
196200
local _, profileName = ADDON.Api:GetFavoriteProfile()

0 commit comments

Comments
 (0)