Allow IdleTimeout to scale based on how long the callback took.
commitbda12a53c175167e7c3ca6a68d1ea1dcf8c704b6
authorauouymous <au@qzx.com>
Sun, 18 Dec 2022 02:45:26 +0000 (17 19:45 -0700)
committerauouymous <au@qzx.com>
Tue, 3 Jan 2023 22:33:31 +0000 (3 15:33 -0700)
tree21a50162b940e2d7e903de041dc122f50fae7256
parent6470ed548478c0fd2b75f17757a960c80616fd3f
Allow IdleTimeout to scale based on how long the callback took.

upload_downloads_list() is now called at upto 5 second intervals when
there are a lot of tasks. Previously, it could take 5 seconds to run and
then only sleep for 1.5 seconds, making the UI unresponsive for long
periods.
src/gpodder/gtkui/main.py
src/gpodder/util.py