Quantcast

Callbacks for profile copy/change/reset

MilleXIV [09-01-16 - 22:49]
Callbacks for profile copy/change/reset
Filename
core.lua
diff --git a/core.lua b/core.lua
index d236e6d..771b52b 100644
--- a/core.lua
+++ b/core.lua
@@ -166,6 +166,10 @@ end
 function XIVBar:OnEnable()
   self:CreateMainBar()
   self:Refresh()
+
+  self.db.RegisterCallback(self, 'OnProfileCopied', 'Refresh')
+  self.db.RegisterCallback(self, 'OnProfileChanged', 'Refresh')
+  self.db.RegisterCallback(self, 'OnProfileReset', 'Refresh')
 end

 function XIVBar:ToggleConfig()