auto_update_feeds -> auto.update.enabled
This commit is contained in:
parent
f19632c426
commit
bcf84cbdf7
|
@ -236,7 +236,6 @@ gPodderSettings_LegacySupport = {
|
|||
'podcast_list_hide_boring': 'ui.gtk.podcast_list.hide_empty',
|
||||
'episode_list_columns': 'ui.gtk.episode_list.columns',
|
||||
'auto_cleanup_downloads': 'ui.gtk.download_list.remove_finished',
|
||||
'auto_update_feeds': 'auto.update.enabled',
|
||||
}
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
|
|
@ -575,7 +575,7 @@ class gPodderPreferences(BuilderWidget):
|
|||
|
||||
def on_update_interval_value_changed(self, range):
|
||||
value = int(range.get_value())
|
||||
self._config.auto_update_feeds = (value > 0)
|
||||
self._config.auto.update.enabled = (value > 0)
|
||||
self._config.auto.update.frequency = self.update_interval_presets[value]
|
||||
|
||||
def on_combo_auto_download_changed(self, widget):
|
||||
|
|
|
@ -228,7 +228,7 @@ class gPodder(BuilderWidget, dbus.service.Object):
|
|||
|
||||
# Start the auto-update procedure
|
||||
self._auto_update_timer_source_id = None
|
||||
if self.config.auto_update_feeds:
|
||||
if self.config.auto.update.enabled:
|
||||
self.restart_auto_update_timer()
|
||||
|
||||
# Find expired (old) episodes and delete them
|
||||
|
@ -3772,7 +3772,7 @@ class gPodder(BuilderWidget, dbus.service.Object):
|
|||
GLib.source_remove(self._auto_update_timer_source_id)
|
||||
self._auto_update_timer_source_id = None
|
||||
|
||||
if (self.config.auto_update_feeds
|
||||
if (self.config.auto.update.enabled
|
||||
and self.config.auto.update.frequency):
|
||||
interval = 60 * 1000 * self.config.auto.update.frequency
|
||||
logger.debug('Setting up auto update timer with interval %d.',
|
||||
|
|
Loading…
Reference in New Issue