You can't 'call' an option using onSettingsChanged. onSettingsChanged itself is called by Core.settings after changing the option - and the setting is saved by Core.settings as well. To properly 'call' an option, you have jump to a temporary setting node, like is done in the ChangeEpubCSS action. Alternatively, you can have your action change the option value directly, and then call Core.settings.saveOptions(addon).
|