Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
update_downloads_list()can take several seconds when thousands of episodes are downloading. Its timer is now adjusted from 1.5 to 5 seconds based on how long the function took to run. This will increase the time between UI lockups when downloading. The timer is also disabled when performing actions that show a progress indicator, which allows the actions to finish significantly faster.The download queue manager can also be disabled when performing actions to further decrease the time they take.
A progress indicator is now shown when cancelling tasks, pausing downloads, resuming paused downloads, or when retrying failed downloads. These actions now finish much faster due to the above improvements.
The new progress indicator requires less code at callsites and can show a message on the final tick if the action performs a final long running operation, such as calling update_downloads_list().
Shift-selections now only update at 250ms intervals to improve responsiveness while mass selecting episodes.
A new
idle_timeout_add()function has been added to allow for timeouts that are handled at the same priority asidle_add(). This should eliminate all issues related to #1311.