disable-enable

To change the state of a setting, use the following methods:

  • To disable an option:

settings.disable('retries')
  • To enable an option:

settings.enable('retries')

Make sure the setting supports enabling/disabling (see the can_disable property in settings.options()).

Last updated