Do sorting
It be slow
This commit is contained in:
@@ -50,6 +50,12 @@ class trtorrent extends EventTarget {
|
||||
case 'torrent-updated':
|
||||
if (this.#name == null) {
|
||||
this.name = e.detail.torrentInfo.name;
|
||||
let nameChangeEvent = new CustomEvent('torrent-renamed', {
|
||||
detail: {
|
||||
torrentHash: this.#hash
|
||||
}
|
||||
});
|
||||
this.dispatchEvent(nameChangeEvent);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user