Do not nuke magnet URL when torrent gets removed
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user