Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decrease the frequency of the downloads request #7377

Merged
merged 1 commit into from Apr 19, 2023

Conversation

drew2a
Copy link
Collaborator

@drew2a drew2a commented Apr 19, 2023

This PR is related to #7360 and should decrease the load by decreasing the frequency of the downloads request.

Background refresh interval has been changed from 1s to 5s.
Refresh now interval has been changed from 0s to 0.01s (https://doc.qt.io/qt-5/qtimer.html#start).

This PR also offers an alternative solution for the problem addressed here: #7372

@@ -109,13 +118,16 @@ def start_loading_downloads(self):
self.loading_list_item = LoadingListItem(self.window().downloads_list)
self.window().downloads_list.addTopLevelItem(self.loading_message_widget)
self.window().downloads_list.setItemWidget(self.loading_message_widget, 2, self.loading_list_item)
self.schedule_downloads_timer(now=True)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not necessary to refresh the downloads on the Tribler start because they will be refreshed when the page is shown.

@drew2a drew2a marked this pull request as ready for review April 19, 2023 13:54
@drew2a drew2a requested a review from a team as a code owner April 19, 2023 13:54
@drew2a drew2a requested review from xoriole and kozlovsky and removed request for a team April 19, 2023 13:54
@drew2a drew2a merged commit 7d3562f into Tribler:release/7.13 Apr 19, 2023
15 checks passed
@drew2a drew2a deleted the fix/7360 branch April 19, 2023 14:30
@drew2a drew2a self-assigned this Apr 20, 2023
@drew2a drew2a added this to the 7.13.0 milestone Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants