From fbcc72a906b096445948d0d9686e8d84dcea4bf8 Mon Sep 17 00:00:00 2001 From: auouymous Date: Sat, 1 Oct 2022 05:39:40 -0600 Subject: [PATCH] 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. --- src/gpodder/gtkui/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gpodder/gtkui/main.py b/src/gpodder/gtkui/main.py index d158bd49..215808e0 100644 --- a/src/gpodder/gtkui/main.py +++ b/src/gpodder/gtkui/main.py @@ -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() -- 2.11.4.GIT