From 5a1cd5634a6e8f1c9d642dfe057a3876fff15974 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Feh=C3=A9r=20Roland?= Date: Tue, 14 Oct 2025 14:31:55 +0200 Subject: [PATCH] Do not nuke magnet URL when torrent gets removed --- js/trdom_torrentcontrol.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/trdom_torrentcontrol.js b/js/trdom_torrentcontrol.js index ab608fd..64defad 100644 --- a/js/trdom_torrentcontrol.js +++ b/js/trdom_torrentcontrol.js @@ -137,8 +137,10 @@ class trdom_torrentcontrol extends EventTarget { break; case 'torrent-deleted': this.#log(6, 'we be delet'); - this.#data = null; - this.updateDOM(); + if (this.exists) { + delete this.#data.name; + this.updateDOM(); + } break; case 'torrent-updated': if (e.detail.torrentHash == this.#hash) {