Fix renaming tracks on Sharp devices (#16)
This commit is contained in:
parent
a268e65020
commit
45b437e092
|
@ -87,7 +87,9 @@ export class NetMDUSBService implements NetMDService {
|
||||||
async renameTrack(index: number, title: string) {
|
async renameTrack(index: number, title: string) {
|
||||||
// Removing non ascii chars... Sorry, I didn't implement char encoding.
|
// Removing non ascii chars... Sorry, I didn't implement char encoding.
|
||||||
title = sanitizeTitle(title);
|
title = sanitizeTitle(title);
|
||||||
|
await this.netmdInterface!.cacheTOC();
|
||||||
await this.netmdInterface!.setTrackTitle(index, title);
|
await this.netmdInterface!.setTrackTitle(index, title);
|
||||||
|
await this.netmdInterface!.syncTOC();
|
||||||
}
|
}
|
||||||
|
|
||||||
async renameDisc(newName: string) {
|
async renameDisc(newName: string) {
|
||||||
|
|
Loading…
Reference in New Issue