Disable progress spinbuttons if unchecked at startup.
They correctly enable/disable when the checkbox is clicked, but have always defaulted to enabled at startup, even when the checkbox is unchecked.
This commit is contained in:
parent
7b07602374
commit
fbcc72a906
|
@ -157,6 +157,9 @@ class gPodder(BuilderWidget, dbus.service.Object):
|
|||
self.config.connect_gtk_spinbutton('limit_rate_value', self.spinLimitDownloads)
|
||||
self.config.connect_gtk_togglebutton('limit_rate', self.cbLimitDownloads)
|
||||
|
||||
self.spinMaxDownloads.set_sensitive(self.cbMaxDownloads.get_active())
|
||||
self.spinLimitDownloads.set_sensitive(self.cbLimitDownloads.get_active())
|
||||
|
||||
# When the amount of maximum downloads changes, notify the queue manager
|
||||
def changed_cb(spinbutton):
|
||||
return self.download_queue_manager.update_max_downloads()
|
||||
|
|
Loading…
Reference in New Issue