Skip to content

Commit

Permalink
Just always pass owner for classic compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Ketho committed Nov 8, 2022
1 parent 1051e34 commit 8d11c40
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Options.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
local isMainline = (WOW_PROJECT_ID == WOW_PROJECT_MAINLINE)

HelloWorld.defaults = {
sessions = 0,
hello = false,
Expand Down Expand Up @@ -35,8 +33,7 @@ function HelloWorld:CreateCheckbox(option, label, parent, updateFunc)
end)
EventRegistry:RegisterCallback("HelloWorld.OnReset", function()
UpdateOption(self.defaults[option])
-- EventRegistry callbacks require an `owner` in Classic
end, not isMainline and cb or nil)
end, cb)
return cb
end

Expand Down

0 comments on commit 8d11c40

Please sign in to comment.