From 88042b2d3d48c062cd0d0c593685ba69c4f1f65b Mon Sep 17 00:00:00 2001 From: KeksNino Date: Mon, 9 Feb 2026 23:17:18 +0100 Subject: [PATCH] fix: downloads randomly resuming after a few seconds when paused credits to claude opus 4.5, i could not figure this out --- core/interface/gui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/interface/gui.py b/core/interface/gui.py index 6325cc2..1204b41 100644 --- a/core/interface/gui.py +++ b/core/interface/gui.py @@ -285,10 +285,13 @@ class MainWindow(QtWidgets.QMainWindow, QWidget): subprocess.Popen(["open", save_path]) return - if status.paused: + is_paused = bool(magnetdl.flags() & lt.torrent_flags.paused) + if is_paused: + magnetdl.set_flags(lt.torrent_flags.auto_managed) magnetdl.resume() consoleLog(f"Resumed download: {status.name}", True) else: + magnetdl.unset_flags(lt.torrent_flags.auto_managed) magnetdl.pause() consoleLog(f"Paused download: {status.name}", True)