Disable background operations while progress dialogs are open.
commitd2f34d0d87304d982918fecb34407c26b710cef7
authorauouymous <au@qzx.com>
Sun, 18 Dec 2022 01:28:13 +0000 (17 18:28 -0700)
committerauouymous <au@qzx.com>
Tue, 3 Jan 2023 13:01:15 +0000 (3 06:01 -0700)
tree9f083cd5865effe849984e1aa6f5f4d288bbc591
parent36dbad9c539ba18894b308b1ad60f638f96e4224
Disable background operations while progress dialogs are open.

Changing task state causes UI to hang while DownloadQueueManager spawns
threads and updates progress tab. And the update_downloads_list() timer
can hang UI for several seconds at a time when thousands of tasks are
queued.

Disabling both of these while a progress dialog is open allows tasks to
be queued faster and the dialog closed sooner.
src/gpodder/download.py
src/gpodder/gtkui/download.py
src/gpodder/gtkui/main.py