Do not nuke magnet URL when torrent gets removed

This commit is contained in:
2025-10-14 14:31:55 +02:00
parent 07d2677af1
commit 5a1cd5634a

View File

@@ -137,8 +137,10 @@ class trdom_torrentcontrol extends EventTarget {
break;
case 'torrent-deleted':
this.#log(6, 'we be delet');
this.#data = null;
if (this.exists) {
delete this.#data.name;
this.updateDOM();
}
break;
case 'torrent-updated':
if (e.detail.torrentHash == this.#hash) {