From 8bce3f0c1626d574bed19b6208b0792c3c2393c9 Mon Sep 17 00:00:00 2001 From: alireza-amirsamimi Date: Wed, 4 Sep 2024 17:35:58 +0330 Subject: [PATCH] Video finder gids should have been removed from session list after stopping download. Changes to be committed: modified: mainwindow.py --- persepolis/scripts/mainwindow.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/persepolis/scripts/mainwindow.py b/persepolis/scripts/mainwindow.py index 882d8e78..e852b597 100644 --- a/persepolis/scripts/mainwindow.py +++ b/persepolis/scripts/mainwindow.py @@ -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(