Skip to content

Commit

Permalink
Merge pull request #7661 from drew2a/fix/7646
Browse files Browse the repository at this point in the history
Fix `PATCH` for the previous download
  • Loading branch information
drew2a committed Oct 31, 2023
2 parents 1ca3e62 + ef4815d commit e020e21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tribler/gui/widgets/downloadsdetailstabwidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,13 @@ def update_with_download(self, download):
or self.current_download.get('infohash') != download.get('infohash')
or self.current_download.get('time_added') != download.get('time_added')
)
self.current_download = download
# When we switch to another download, we want to fixate the changes user did to selected files.
# Also, we have to stop the change batching time to prevent carrying the event to the new download
if did_change and self._batch_changes_timer.isActive():
self._batch_changes_timer.stop()
self.set_included_files()

self.current_download = download
self.update_pages(new_download=did_change)

@staticmethod
Expand Down

0 comments on commit e020e21

Please sign in to comment.