web: fix sorting of renamed torrents by name (#1892)
Co-authored-by: Benedikt Morbach <benedikt.morbach@googlemail.com>
This commit is contained in:
parent
3b72a1feea
commit
959cbe2c64
|
@ -124,6 +124,12 @@ export class Torrent extends EventTarget {
|
|||
changed |= this.setField(this.fields, key, value);
|
||||
}
|
||||
break;
|
||||
case 'name':
|
||||
if (this.setField(this.fields, key, data[key])) {
|
||||
this.fields.collatedName = '';
|
||||
changed = true;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
changed |= this.setField(this.fields, key, value);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue