Skip to content

Commit

Permalink
Video finder gids should have been removed from session list after
Browse files Browse the repository at this point in the history
stopping download.
 Changes to be committed:
	modified:   mainwindow.py
  • Loading branch information
alireza-amirsamimi committed Sep 4, 2024
1 parent 8d74e66 commit 8bce3f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions persepolis/scripts/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1967,6 +1967,11 @@ def checkDownloadInfo(self, list):
# eliminate window information from progress_window_list_dict
del self.progress_window_list_dict[gid]

# remove item from download_sessions_list
remove_item_from_session_list_thread = RemoveItemFromSessionListThread(gid, self)
self.threadPool.append(remove_item_from_session_list_thread)
self.threadPool[-1].start()

# set "None" for start_time and end_time and after_download value
# in data_base, because download has finished
self.persepolis_db.setDefaultGidInAddlinkTable(
Expand Down

0 comments on commit 8bce3f0

Please sign in to comment.