WoWInterface - View Single Post - Refresh options screen dynamically
View Single Post
02-20-21, 05:41 PM   #2
A Scalebane Royal Guard
Vrul's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 404
NotifyChange is for when something outside of your AceConfig changes a value while the config is open and you want it updated. Changing a setting within AceConfig automatically updates your options. Your issue is that you set a hard value for your description when you should have used a function if you want it to be dynamic:
                    useClassRep = {
                        order = 40,
                        name = L["Override some default racial reps with class reps."],
                        desc = function() return (L["Your class reputation is %s"]):format(racialRepName) end,
                        descStyle = "inline",
                        type = "toggle",
                        width = "double",
                        get = function() return db.useClassRep end,
                        set = function(info, value)
                            db.useClassRep = value
                            racialRepID, racialRepName = self:GetRacialRep()
  Reply With Quote