Thread Tools Display Modes
Prev Previous Post   Next Post Next
01-26-18, 06:33 PM   #1
Sweetsour
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Dec 2014
Posts: 130
AceConfigRegistry's NotifyChange()

So, I'm more or less trying to confirm the purpose of this function. My assumption is that I call it to request an update to AceConfig's options? Their site doesn't provide much material on the function.

My code
Lua Code:
  1. local ACFG = LibStub("AceConfigRegistry-3.0")
  2. ACFG:RegisterOptionsTable("CustomAudio Spell Sounds", GetSpellOptions)
  3.  
  4. local ACD = LibStub("AceConfigDialog-3.0")
  5. ACD:AddToBlizOptions("CustomAudio Spell Sounds", "Spell Sounds", "CustomAudio")
  6.  
  7. -- I run this code when the player changes the active profile
  8. LibStub("AceConfigRegistry-3.0"):NotifyChange("CustomAudio Spell Sounds")

From what I've found, the code seems to be correct, but it doesn't actually update any of my config's values. Currently, when I try to update the active profile, I have to ReloadUI() to have the proper values appear.

Is there perhaps a different function/method I should be using to update my config's values?

Last edited by Sweetsour : 01-26-18 at 09:35 PM.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » AceConfigRegistry's NotifyChange()


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off