Skip to content

Commit

Permalink
Merge branch 'thewarwithin' of https://github.com/Hekili/hekili into …
Browse files Browse the repository at this point in the history
…thewarwithin
  • Loading branch information
Hekili committed Sep 22, 2024
2 parents b444bfd + 66ff9e0 commit 6c92c05
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4169,6 +4169,10 @@ do
if option == "package" then self:UpdateUseItems(); self:ForceUpdate( "SPEC_PACKAGE_CHANGED" )
elseif option == "enabled" then ns.StartConfiguration() end

if WeakAuras and WeakAuras.ScanEvents then
WeakAuras.ScanEvents( "HEKILI_SPEC_OPTION_CHANGED", option, val )
end

Hekili:UpdateDamageDetectionForCLEU()
end

Expand All @@ -4177,7 +4181,7 @@ do
local n = #info
local spec, option = info[1], info[n]

spec = specIDByName[ spec ]
if type( spec ) == 'string' then spec = specIDByName[ spec ] end
if not spec then return end

self.DB.profile.specs[ spec ] = self.DB.profile.specs[ spec ] or {}
Expand Down Expand Up @@ -10774,6 +10778,9 @@ do
setting.info.set( info, to )

Hekili:ForceUpdate( "CLI_TOGGLE" )
if WeakAuras and WeakAuras.ScanEvents then
WeakAuras.ScanEvents( "HEKILI_SPEC_OPTION_CHANGED", args[2], to )
end
return

elseif setting.info.type == "range" then
Expand All @@ -10798,6 +10805,9 @@ do
Hekili:Print( format( "%s set to |cFF00B4FF%.2f|r.", settingName, to ) )
prefs[ setting.name ] = to
Hekili:ForceUpdate( "CLI_NUMBER" )
if WeakAuras and WeakAuras.ScanEvents then
WeakAuras.ScanEvents( "HEKILI_SPEC_OPTION_CHANGED", args[2], to )
end
return

end
Expand Down

0 comments on commit 6c92c05

Please sign in to comment.