From eccdb2f068c573a4caddd5dbdafd900189d939c9 Mon Sep 17 00:00:00 2001 From: KeksNino Date: Sat, 7 Mar 2026 21:56:07 +0100 Subject: [PATCH] fix file deletion when seeding --- src/core/interface/gui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/interface/gui.py b/src/core/interface/gui.py index d382d04..858f31a 100644 --- a/src/core/interface/gui.py +++ b/src/core/interface/gui.py @@ -881,15 +881,15 @@ class MainWindow(QtWidgets.QMainWindow, QWidget): if download_path and os.path.exists(download_path): try: if os.path.isfile(download_path): + remove_download_log(magnet_link) os.remove(download_path) del state.active_downloads[magnet_link] - remove_download_log(magnet_link) consoleLog(f"Deleted files for: {magnetdl.status().name}", True) else: import shutil - shutil.rmtree(download_path) del state.active_downloads[magnet_link] remove_download_log(magnet_link) + shutil.rmtree(download_path) consoleLog(f"Deleted files for: {magnetdl.status().name}", True) except Exception as e: consoleLog(f"Error deleting files: {e}", True)