Skip to content

Commit

Permalink
Migrate options on profile changes
Browse files Browse the repository at this point in the history
  • Loading branch information
raethkcj committed Dec 20, 2024
1 parent 71e8ba4 commit 3db73f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion RatingBuster.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1891,8 +1891,12 @@ function RatingBuster:InitializeDatabase()
if ReforgingFrame then
ReforgingFrame_Update(ReforgingFrame)
end
addon.MigrateOptions(db)
end)
RatingBuster.db.RegisterCallback(RatingBuster, "OnProfileCopied", function()
RatingBuster:ClearCache()
addon.MigrateOptions(db)
end)
RatingBuster.db.RegisterCallback(RatingBuster, "OnProfileCopied", "ClearCache")
RatingBuster.db.RegisterCallback(RatingBuster, "OnProfileReset", "ClearCache")
db = RatingBuster.db

Expand Down

0 comments on commit 3db73f8

Please sign in to comment.