preferences: Add a checkbutton for ui.gtk.only_added_are_new config var
This commit is contained in:
parent
2552e6e0ec
commit
b5ac4034f3
|
@ -568,6 +568,21 @@
|
|||
<property name="position">3</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkCheckButton" id="checkbutton_only_added_are_new">
|
||||
<property name="label" translatable="yes">Consider only episodes added in the update as new</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">True</property>
|
||||
<property name="receives-default">False</property>
|
||||
<property name="margin-bottom">5</property>
|
||||
<property name="draw-indicator">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">4</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkFlowBox">
|
||||
<property name="visible">True</property>
|
||||
|
|
|
@ -249,6 +249,9 @@ class gPodderPreferences(BuilderWidget):
|
|||
|
||||
self._config.connect_gtk_spinbutton('limit.episodes', self.spinbutton_episode_limit)
|
||||
|
||||
self._config.connect_gtk_togglebutton('ui.gtk.only_added_are_new',
|
||||
self.checkbutton_only_added_are_new)
|
||||
|
||||
self.auto_download_model = NewEpisodeActionList(self._config)
|
||||
self.combo_auto_download.set_model(self.auto_download_model)
|
||||
cellrenderer = Gtk.CellRendererText()
|
||||
|
|
Loading…
Reference in New Issue