File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments