Skip to content

Commit

Permalink
React to settings_update.
Browse files Browse the repository at this point in the history
  • Loading branch information
Renée Köcher authored and Renée Köcher committed Jan 14, 2023
1 parent 5641f55 commit 91dadf8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion addons/statustimers/statustimers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

addon.name = 'statustimers';
addon.author = 'heals';
addon.version = '4.0.909';
addon.version = '4.0.910';
addon.desc = 'Replacement for the default status timer display';
addon.link = 'https://github.com/Shirk/statustimers';

Expand Down Expand Up @@ -98,6 +98,15 @@ end
-------------------------------------------------------------------------------
-- addon callbacks
-------------------------------------------------------------------------------
settings.register('settings', 'settings_update', function (s)
if (s ~= nil) then
st.settings = s;
end

-- Save the current settings..
settings.save();
end);

local ffi = require('ffi');
ashita.events.register('load', 'statustimers_load', function ()
helpers.run_init();
Expand Down

0 comments on commit 91dadf8

Please sign in to comment.