'Set the auto-save interval.'

@config.change_filter('general', 'auto-save-interval')
def set_autosave_interval(self):

    interval = config.get('general', 'auto-save-interval')
    if (interval == 0):
        self._save_timer.stop()
    else:
        self._save_timer.setInterval(interval)
        self._save_timer.start()
